我在matplotlib-venn中使用easy_install有问题。我在使用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尝试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发布于 2013-11-26 15:31:01
基于
Download error on https://pypi.python.org/simple/matplotlib-venn/: [Errno 11004] getaddrinfo failed 和
Cannot fetch index base URL https://pypi.python.org/simple/ 你好像有网络问题。您是否在防火墙或代理之后运行您的机器?
要使easy_install在代理后工作,您必须设置所需的环境,例如
set http_proxy="user:password@server:port"
set https_proxy="user:password@server:port"对于pip,可以使用-proxy参数。有关代理背后的pip使用的更多详细信息,请参见以下线程:How to use pip on windows behind an authenticating proxy
发布于 2013-11-26 14:25:32
我认为这是你的解决方案
easy_install pip
pip install matplotlib-venn在matplotlib-venn中没有模块easy_install
对于将来,使用pip来安装python的任何包。
发布于 2016-02-01 06:20:41
student@student-WIV68105-0080:~$ **sudo apt-cache search rtree**
libcneartree-dev - Library and headers for solving the Nearest Neighbor Problem
libcneartree5 - Library for solving the Nearest Neighbor Problem
student@student-WIV68105-0080:~$ **sudo apt-get install libcneartree-dev libcneartree5**
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
libcvector2
The following NEW packages will be installed:
libcneartree-dev libcneartree5 libcvector2对于我来说,rtree包也发生了同样的错误,我执行了缓存搜索并安装了liraries。
https://stackoverflow.com/questions/20219628
复制相似问题