Easy_install virtualenv/Pip 安装 virtualenv - 不工作

Easy_install virtualenv/Pip install virtualenv - not working

我在公司服务器上工作pip install或者easy_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/

转到此 link 并搜索 virtualenv 并从下载文件夹

下载正确的 wheel 文件和

使用pip install the_wheel_name