鱼C论坛

 找回密码
 立即注册
查看: 2259|回复: 10

[已解决]numpy安装错误

[复制链接]
发表于 2020-9-8 16:48:54 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能^_^

您需要 登录 才可以下载或查看,没有账号?立即注册

x
C:\Users\hxk1>pip install numpy
Collecting numpy
  WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x0430A580>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed')': /packages/aa/10/92a98ab6a17b5e780d7104864eb3b125bf952368d6b9cb07dcef4c05665a/numpy-1.19.1-cp38-cp38-win32.whl
  WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x042690A0>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed')': /packages/aa/10/92a98ab6a17b5e780d7104864eb3b125bf952368d6b9cb07dcef4c05665a/numpy-1.19.1-cp38-cp38-win32.whl
  WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x042691A8>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed')': /packages/aa/10/92a98ab6a17b5e780d7104864eb3b125bf952368d6b9cb07dcef4c05665a/numpy-1.19.1-cp38-cp38-win32.whl
  WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x04269280>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed')': /packages/aa/10/92a98ab6a17b5e780d7104864eb3b125bf952368d6b9cb07dcef4c05665a/numpy-1.19.1-cp38-cp38-win32.whl
  WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x04269358>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed')': /packages/aa/10/92a98ab6a17b5e780d7104864eb3b125bf952368d6b9cb07dcef4c05665a/numpy-1.19.1-cp38-cp38-win32.whl
ERROR: Could not install packages due to an EnvironmentError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Max retries exceeded with url: /packages/aa/10/92a98ab6a17b5e780d7104864eb3b125bf952368d6b9cb07dcef4c05665a/numpy-1.19.1-cp38-cp38-win32.whl (Caused by NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x04269430>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed'))

WARNING: You are using pip version 20.1.1; however, version 20.2.2 is available.
You should consider upgrading via the 'd:\python\python.exe -m pip install --upgrade pip' command.
相同的步骤我帮别人按得起,为什么我的就出错了
最佳答案
2020-9-8 17:18:34
小瘦受 发表于 2020-9-8 16:57
抱歉抱歉,望加代码段,重发一次
python -m pip install numpy -i https://pypi.tuna.tsinghua.edu.cn/simple
这样试试
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复

使用道具 举报

 楼主| 发表于 2020-9-8 16:57:36 | 显示全部楼层
C:\Users\hxk1>pip install numpy
Collecting numpy
  WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x0430A580>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed')': /packages/aa/10/92a98ab6a17b5e780d7104864eb3b125bf952368d6b9cb07dcef4c05665a/numpy-1.19.1-cp38-cp38-win32.whl
  WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x042690A0>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed')': /packages/aa/10/92a98ab6a17b5e780d7104864eb3b125bf952368d6b9cb07dcef4c05665a/numpy-1.19.1-cp38-cp38-win32.whl
  WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x042691A8>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed')': /packages/aa/10/92a98ab6a17b5e780d7104864eb3b125bf952368d6b9cb07dcef4c05665a/numpy-1.19.1-cp38-cp38-win32.whl
  WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x04269280>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed')': /packages/aa/10/92a98ab6a17b5e780d7104864eb3b125bf952368d6b9cb07dcef4c05665a/numpy-1.19.1-cp38-cp38-win32.whl
  WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x04269358>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed')': /packages/aa/10/92a98ab6a17b5e780d7104864eb3b125bf952368d6b9cb07dcef4c05665a/numpy-1.19.1-cp38-cp38-win32.whl
ERROR: Could not install packages due to an EnvironmentError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Max retries exceeded with url: /packages/aa/10/92a98ab6a17b5e780d7104864eb3b125bf952368d6b9cb07dcef4c05665a/numpy-1.19.1-cp38-cp38-win32.whl (Caused by NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x04269430>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed'))

WARNING: You are using pip version 20.1.1; however, version 20.2.2 is available.
You should consider upgrading via the 'd:\python\python.exe -m pip install --upgrade pip' command.
抱歉抱歉,望加代码段,重发一次
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复 支持 反对

使用道具 举报

发表于 2020-9-8 17:09:56 | 显示全部楼层
打开cmd,
输入D:然后回车,
输入cd python,回车
输入
python.exe -m pip install --upgrade pip
(按报错最后一行做呗)
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复 支持 反对

使用道具 举报

发表于 2020-9-8 17:18:34 | 显示全部楼层    本楼为最佳答案   
小瘦受 发表于 2020-9-8 16:57
抱歉抱歉,望加代码段,重发一次
python -m pip install numpy -i https://pypi.tuna.tsinghua.edu.cn/simple
这样试试
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复 支持 反对

使用道具 举报

 楼主| 发表于 2020-9-8 17:23:44 | 显示全部楼层
昨非 发表于 2020-9-8 17:09
打开cmd,
输入D:然后回车,
输入cd python,回车

不行哎,第一步就不是内部或外部命令,也不是可运行的程序
或批处理文件。
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复 支持 反对

使用道具 举报

 楼主| 发表于 2020-9-8 17:28:02 | 显示全部楼层

不行哎,下载不完又报错
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复 支持 反对

使用道具 举报

发表于 2020-9-8 17:30:05 | 显示全部楼层
小瘦受 发表于 2020-9-8 17:23
不行哎,第一步就不是内部或外部命令,也不是可运行的程序
或批处理文件。

windows切换目录啊,不会有问题的

                               
登录/注册后可看大图
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复 支持 反对

使用道具 举报

 楼主| 发表于 2020-9-8 17:40:35 | 显示全部楼层
昨非 发表于 2020-9-8 17:30
windows切换目录啊,不会有问题的

明白了,但还是不行
WARNING: You are using pip version 20.1.1; however, version 20.2.2 is available.
You should consider upgrading via the 'D:\python\python.exe -m pip install --upgrade pip' command.
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复 支持 反对

使用道具 举报

发表于 2020-9-8 17:47:52 | 显示全部楼层
小瘦受 发表于 2020-9-8 17:40
明白了,但还是不行
WARNING: You are using pip version 20.1.1; however, version 20.2.2 is availabl ...
D:\python\python.exe -m pip install --upgrade pip
直接输入这个
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复 支持 反对

使用道具 举报

 楼主| 发表于 2020-9-8 17:59:39 From FishC Mobile | 显示全部楼层
1q23w31 发表于 2020-9-8 17:47
直接输入这个

还是不行,我大概明白是要更新pip,但更新不了,难受
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复 支持 反对

使用道具 举报

发表于 2020-9-8 18:00:45 | 显示全部楼层
小瘦受 发表于 2020-9-8 17:59
还是不行,我大概明白是要更新pip,但更新不了,难受

方便远程吗?
加q 1260121341
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|手机版|Archiver|鱼C工作室 ( 粤ICP备18085999号-1 | 粤公网安备 44051102000585号)

GMT+8, 2025-1-11 04:50

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表