首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >python容易安装的问题

python容易安装的问题
EN

Stack Overflow用户
提问于 2013-11-26 14:21:35
回答 4查看 62.7K关注 0票数 8

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

代码语言:javascript
复制
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安装建议的输出:

代码语言:javascript
复制
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
EN

回答 4

Stack Overflow用户

回答已采纳

发布于 2013-11-26 15:31:01

基于

代码语言:javascript
复制
Download error on https://pypi.python.org/simple/matplotlib-venn/: [Errno 11004] getaddrinfo failed 

代码语言:javascript
复制
Cannot fetch index base URL https://pypi.python.org/simple/ 

你好像有网络问题。您是否在防火墙或代理之后运行您的机器?

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

代码语言:javascript
复制
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

票数 17
EN

Stack Overflow用户

发布于 2013-11-26 14:25:32

我认为这是你的解决方案

代码语言:javascript
复制
easy_install pip
pip install matplotlib-venn

matplotlib-venn中没有模块easy_install

对于将来,使用pip来安装python的任何包。

票数 2
EN

Stack Overflow用户

发布于 2016-02-01 06:20:41

代码语言:javascript
复制
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。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/20219628

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档