Проблемы с python easy install

у меня проблема с использованием easy_install для matplotlib-venn. Я на компьютере с windows, использующем python2.7. Я подозреваю, что путь неправильный, но я не знаю, как решить проблему. Кто-нибудь может мне помочь? Я прикрепляю вывод от попытки запустить команду easy_install в подсказке CMD.

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

3 ответов


на основе

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, вы можете использовать


Я думаю, что это ваше решение

easy_install pip
pip install matplotlib-venn

блок matplotlib-venn в easy_install

и в будущем используйте 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