Forums

pip install : cannot fetch index base url

Hi all,

I am currently creating a python application, and would like to use the cool tools provided by you guys to test it 24/7. I cloned my githu repo without problem, but get an error when trying to install my requirements with pip.

Here is the line I type in my bash console :

 22:40 ~/twitterboard (master)$ pip install -r requirements.txt --user

And here is the error I get :

Downloading/unpacking SQLAlchemy==0.8.0b2 (from -r requirements.txt (line 2))
Cannot fetch index base URL http://pypi.python.org/simple/
Could not find any downloads that satisfy the requirement SQLAlchemy==0.8.0b2 (from -r requirements.txt (line 2))
No distributions at all found for SQLAlchemy==0.8.0b2 (from -r requirements.txt (line 2))

It seems pretty strange to get a fetch error :s.

i don't really find any information using google Any idea would be far more than welcome :). Thanks !

Hum...Looking at the log, it seems like the connexion is refused.

Could that come from you ? Could not fetch URL http://pypi.python.org/simple/SQLAlchemy/0.8.0b2: <urlopen error [Errno 111] Connection refused>

I can already import sqlalchemy from a python console, it though seems that it is already installed. In this case, pip should probably not give an error but just skip, shouldn't it?

Hi jillengrand,

Could you try it again now? Our proxy was taken down by an internal DDOS overnight. As a free user you can only connect to the internet via the proxy and when that has been taken down things will break.

Hey hansel,

Solved the issue by looking at the logs. It seems like Flask.SQLAlchemy already provides what I wanted and was taken as a duplicate by pip.

pip itself was blocking the connection for some strange reason. Everything is fine now. Thanks for the help !