WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None))内网安装python库

编程入门 行业动态 更新时间:2024-10-09 03:30:52

WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None))<a href=https://www.elefans.com/category/jswz/34/1768788.html style=内网安装python库"/>

WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None))内网安装python库


内网安装python库出现报错
截图如下:

Processing e:\pack\打包专用文件夹\mouseinfo-0.1.3.tar.gz
Installing build dependencies … error
error: subprocess-exited-with-error

× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> [7 lines of output]
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘NewConnectionError(’<pip._vendor.urllib3.connection.HTTPSConnection object at 0x000002896BB54690>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed’)': /simple/setuptools/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘NewConnectionError(’<pip._vendor.urllib3.connection.HTTPSConnection object at 0x000002896BB55010>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed’)‘: /simple/setuptools/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘NewConnectionError(’<pip._vendor.urllib3.connection.HTTPSConnection object at 0x000002896BB561D0>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed’)‘: /simple/setuptools/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘NewConnectionError(’<pip._vendor.urllib3.connection.HTTPSConnection object at 0x000002896BB56D50>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed’)‘: /simple/setuptools/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘NewConnectionError(’<pip._vendor.urllib3.connection.HTTPSConnection object at 0x000002896BB578D0>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed’)': /simple/setuptools/
ERROR: Could not find a version that satisfies the requirement setuptools>=40.8.0 (from versions: none)
ERROR: No matching distribution found for setuptools>=40.8.0
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.
实际上我的电脑里面 setuptools 版本很高。
搜索了很多方法,包括修改控制面板里面的Internet设置,都不行。最终搜索到一个方法解决了:
那就是

pip install --no-build-isolation --no-index --find-links=./ fairscale

可以把faiscale改成自己需要的包,(前提,在这个包的文件夹打开powershell)
我的使用这个语句以后,还是报错

提示 error: invalid command ‘bdist_wheel’
然后我就搜索方法,升级了 wheel包
再使用以上方法安装 库,就成功了
详见截图内容

更多推荐

WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status

本文发布于:2024-03-09 06:53:04,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1724196.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:内网   Retry   total   WARNING   Retrying

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!