Do not install modules

In accordance with the object. I am running Python 2.7.10 under Windows 7 64 bit. I added C: \ Python27 \ Scripts to my PATH, and I can run pip , but could not install the modules. for instance

 pip install numpy 

gives

 Collecting numpy Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'ProtocolError('Connection aborted.', gaierror(11004,'getaddrinfo failed'))': /simple/numpy/ 

He continues to try and fail, and then exits with

 Could not find a version that satisfies the requirement numpy (from versions: ) No matching distribution found for numpy 

I may be behind a firewall, but I am very disappointed because I can install packages under R perfectly using install.packages , and I don’t understand why I cannot do the same with Python. If I install packages manually (in case of numpy , from here

numpy

what am I missing regarding using pip ?

EDIT: as suggested in the comments, I downloaded the .whl file for numpy from numpy , I went to the download directory and executed

  pip install numpy-1.10.1-cp27-none-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl 

I just got

  numpy-1.10.1-cp27-none-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl is not a supported wheel on this platform. 

What should I do?

+10
source share
3 answers

Used proxy server. For instance:

 python.exe -m pip install numpy --proxy="proxy.com:8080" 

where "proxy.com:8080" is the address and port of the proxy server. This can be found in the OS settings.

How to get them:

+12
source

To bypass the firewall, you can use proxies

 pip install numpy --proxy <domain\user: password@proxyaddress :port> 

eg.,

 pip install numpy --proxy http://<username>:<password>@proxy.xyz.com:2180 
0
source

I had the same problem with MEO in Portugal.

I changed my IPv4 DNS to 8.8.8.8 and 8.8.4.4 (Google) and disabled IPv6 and it worked.

0
source

All Articles