gpt4 book ai didi

python - Easy_install virtualenv/Pip install virtualenv - 不起作用

转载 作者:行者123 更新时间:2023-11-30 22:24:42 24 4
gpt4 key购买 nike

我正在公司的服务器上工作,pip installeasy_install 无法正常工作。我无法安装virtualenv。这是 easy_install 的结果:

PS C:\> easy_install virtualenv
Searching for virtualenv
Reading https://pypi.python.org/simple/virtualenv/
Download error on https://pypi.python.org/simple/virtualenv/: [Errno 11001] getaddrinfo failed -- Some packages may not
be found!
Couldn't find index page for 'virtualenv' (maybe misspelled?)
Scanning index of all packages (this may take a while)
Reading https://pypi.python.org/simple/
Download error on https://pypi.python.org/simple/: [Errno 11001] getaddrinfo failed -- Some packages may not be found!
No local packages or working download links found for virtualenv
error: Could not find suitable distribution for Requirement.parse('virtualenv')
PS C:\>

这是我运行 pip install 命令时得到的结果:

PS C:\> pip install virtualenv
Collecting virtualenv
Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pi
._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x03600ED0>: Failed to establish a new
onnection: [Errno 11001] getaddrinfo failed',)': /simple/virtualenv/
Retrying (Retry(total=3, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pi
._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x03600E10>: Failed to establish a new
onnection: [Errno 11001] getaddrinfo failed',)': /simple/virtualenv/
Retrying (Retry(total=2, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pi
._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x03600FF0>: Failed to establish a new
onnection: [Errno 11001] getaddrinfo failed',)': /simple/virtualenv/
Retrying (Retry(total=1, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pi
._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x03600F70>: Failed to establish a new
onnection: [Errno 11001] getaddrinfo failed',)': /simple/virtualenv/
Retrying (Retry(total=0, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pi
._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x03600EB0>: Failed to establish a new
onnection: [Errno 11001] getaddrinfo failed',)': /simple/virtualenv/
Could not find a version that satisfies the requirement virtualenv (from versions: )
No matching distribution found for virtualenv

我是 django 新手,我无法弄清楚这个问题。所以,请帮我解决这个问题。

最佳答案

https://www.lfd.uci.edu/~gohlke/pythonlibs/

转到此链接并搜索virtualenv并从下载文件夹中下载正确的wheel文件

使用pip install the_wheel_name

关于python - Easy_install virtualenv/Pip install virtualenv - 不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47767236/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com