【问题标题】:Easy_install virtualenv/Pip install virtualenv - not workingEasy_install virtualenv/Pip install virtualenv - 不工作
【发布时间】:2018-05-25 19:41:51
【问题描述】:

我正在公司的服务器上工作,而 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 的新手,我无法找出问题所在。所以,请帮我解决这个问题。

【问题讨论】:

  • 阅读错误消息,并注意您应该从同一命令提示符检查pypi.python.org 是否可以访问(尝试ping pypi.python.org)。
  • 允许在您的防病毒防火墙或 Windows 防火墙中使用 pip 然后重试
  • @Exprator 如何允许 pip 通过防火墙?我尝试禁用防火墙。但是,我收到了同样的结果。
  • 尝试这样安装pip install virtualenvwrapper-powershell

标签: python django pip virtualenv easy-install


【解决方案1】:

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

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

使用pip install the_wheel_name

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2016-11-09
    • 1970-01-01
    • 2014-02-23
    • 2016-05-13
    • 2014-08-23
    • 2017-09-12
    • 1970-01-01
    相关资源
    最近更新 更多