python易于安装的问题

jon*_*nas 7 python matplotlib easy-install python-2.7 matplotlib-venn

我使用easy_install for matplotlib-venn时遇到问题.我在使用python2.7的Windows计算机上.我怀疑路径不正确,但我不知道如何解决这个问题.谁能帮助我?我正在尝试在CMD提示符中运行easy_install命令附加输出.

C:\Python27\Scripts>easy_install matplotlib-venn
Searching for matplotlib-venn
Reading https://pypi.python.org/simple/matplotlib-venn/
Download error on https://pypi.python.org/simple/matplotlib-venn/: [Errno 11004]
 getaddrinfo failed -- Some packages may not be found!
Couldn't find index page for 'matplotlib-venn' (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 11004] getaddrinfo fai
led -- Some packages may not be found!
No local packages or download links found for matplotlib-venn
error: Could not find suitable distribution for Requirement.parse('matplotlib-ve
nn')
install for matplotlib-venn package
Run Code Online (Sandbox Code Playgroud)

尝试pip安装建议的输出:

C:\Python27\Scripts>easy_install pip
Searching for pip
Best match: pip 1.4.1
Adding pip 1.4.1 to easy-install.pth file
Installing pip-script.py script to C:\Python27\Scripts
Installing pip.exe script to C:\Python27\Scripts
Installing pip.exe.manifest script to C:\Python27\Scripts
Installing pip-2.7-script.py script to C:\Python27\Scripts
Installing pip-2.7.exe script to C:\Python27\Scripts
Installing pip-2.7.exe.manifest script to C:\Python27\Scripts
Using c:\python27\lib\site-packages
Processing dependencies for pip
Finished processing dependencies for pip
C:\Python27\Scripts>pip install matplotlib-venn
Downloading/unpacking matplotlib-venn
  Cannot fetch index base URL https://pypi.python.org/simple/
  Could not find any downloads that satisfy the requirement matplotlib-venn
Cleaning up...
No distributions at all found for matplotlib-venn
Storing complete log in C:\Users\jherman8\pip\pip.log
Run Code Online (Sandbox Code Playgroud)

alk*_*lko 18

基于

Download error on https://pypi.python.org/simple/matplotlib-venn/: [Errno 11004] getaddrinfo failed 
Run Code Online (Sandbox Code Playgroud)

Cannot fetch index base URL https://pypi.python.org/simple/ 
Run Code Online (Sandbox Code Playgroud)

看来你有网络问题.您是在防火墙或代理后面运行机器吗?

例如,easy_install要在代理后面工作,您必须设置所需的环境

set http_proxy="user:password@server:port"
set https_proxy="user:password@server:port"
Run Code Online (Sandbox Code Playgroud)

对于pip,你可以使用-proxy参数.关于代理背后的pip使用的更多细节请参见此主题:如何在身份验证代理后面的窗口上使用pip

  • 为什么要downvote?我会感到惊讶,如果这不会帮助OP. (2认同)