python的问题易于安装



我在matplotlib venn中使用easy_install时遇到问题。我在windows电脑上使用python2.7。我怀疑路径不正确,但我不知道如何解决这个问题。有人能帮我吗?我将附加尝试在CMD提示器中运行easy_install命令的输出。

C:Python27Scripts>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:Python27Scripts>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:Python27Scripts
Installing pip.exe script to C:Python27Scripts
Installing pip.exe.manifest script to C:Python27Scripts
Installing pip-2.7-script.py script to C:Python27Scripts
Installing pip-2.7.exe script to C:Python27Scripts
Installing pip-2.7.exe.manifest script to C:Python27Scripts
Using c:python27libsite-packages
Processing dependencies for pip
Finished processing dependencies for pip
C:Python27Scripts>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:Usersjherman8pippip.log

基于

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使用的更多详细信息,请参阅本线程:如何在认证代理后面的窗口上使用pip

我认为这是您的解决方案

easy_install pip
pip install matplotlib-venn

easy_install 中没有模块matplotlib-venn

对于未来,使用pip为python安装任何软件包。

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

在cloudera box的情况下,如果您正在尝试,那么这将在bugzile中实现。https://bugzilla.redhat.com/show_bug.cgi?id=1510444它适用于我的cloudera vm jut,请按照说明操作,然后尝试通过easy_install安装。

#easy_install-ihttps://pypi.python.org/simple针脚搜索针脚阅读https://pypi.python.org/simple/stitches/最佳匹配:缝线0.11下载https://pypi.python.org/packages/9d/73/681005f0f0fb9483f0d94547a35059c776144fc998780b9ef00167a50f3d/stitches-0.11.tar.gz#md5=0ac0b6e418767e6ec5cf684460d1972f正在处理stitches-0.11.tar.gz正在运行stitches-.11/setup.py-q bdist_egg--dist-dir/tmp/easy_install-ZMIU8w/stitches-011/egg-dist-tmp-82ctsZ zip_safe标志未设置;正在分析存档内容。。。stitches.connection:模块引用文件将缝线0.11添加到easy-install.pth文件

已安装/usr/lib/python2.6/site-packages/stitches-0.11-py2.6.egg处理缝合的依赖项。。。搜索pynacl>=1.0.1阅读https://pypi.python.org/simple/pynacl/最佳匹配:PyNaCl 1.2.0下载https://pypi.python.org/packages/fa/38/0f35ec4beb6562f1abfa07914db1cea978e93da409ba6293f810d9e677d6/PyNaCl-1.2.0.tar.gz#md5=7a31e95f5f457184b1660b71d6808b19正在处理PyNaCl-1.2.0.tar.gz正在运行PyNaCl-1.0.0/setup.py-q bdist_egg--dist-dir/tmp/easy_install-a0vNJS/PyNaCl-1.2.0/egg-dist-tmp-QYvAk9正在检查中的.pth文件支持/usr/bin/python-E-c pass搜索cffi>=1.4.1阅读http://pypi.python.org/simple/cffi/找不到"cffi"的索引页(可能拼写错误?)正在扫描所有包的索引(这可能需要一段时间)正在读取http://pypi.python.org/simple/找不到cffi>=1.4.1的本地包或下载链接错误:找不到适合Requirement.parse('cfi>=1.4.1')的分发

因此,唯一的解决方案是破解源代码:

sed-i s,http://pypi.python.org,https://pypi.python.org,/usr/lib/python2.6/site-packages/setuptools/command/easy_install.py

sudo