小瘦受 发表于 2020-9-8 16:48:54

numpy安装错误

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: 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: 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: 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: 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: 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: 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 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: 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: 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: 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: 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: 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: 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:09:56

打开cmd,
输入D:然后回车,
输入cd python,回车
输入python.exe -m pip install --upgrade pip
(按报错最后一行做呗)

1q23w31 发表于 2020-9-8 17:18:34

小瘦受 发表于 2020-9-8 16:57
抱歉抱歉,望加代码段,重发一次

python -m pip install numpy -i https://pypi.tuna.tsinghua.edu.cn/simple
这样试试

小瘦受 发表于 2020-9-8 17:23:44

昨非 发表于 2020-9-8 17:09
打开cmd,
输入D:然后回车,
输入cd python,回车


不行哎,第一步就不是内部或外部命令,也不是可运行的程序
或批处理文件。

小瘦受 发表于 2020-9-8 17:28:02

1q23w31 发表于 2020-9-8 17:18
这样试试

不行哎,下载不完又报错

昨非 发表于 2020-9-8 17:30:05

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

windows切换目录啊,不会有问题的
https://s1.ax1x.com/2020/09/08/wQRUeA.png

小瘦受 发表于 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.

1q23w31 发表于 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
直接输入这个

小瘦受 发表于 2020-9-8 17:59:39

1q23w31 发表于 2020-9-8 17:47
直接输入这个

还是不行,我大概明白是要更新pip,但更新不了,难受

1q23w31 发表于 2020-9-8 18:00:45

小瘦受 发表于 2020-9-8 17:59
还是不行,我大概明白是要更新pip,但更新不了,难受

方便远程吗?
加q 1260121341
页: [1]
查看完整版本: numpy安装错误