内网安装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
发布评论