Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PIP Could not find any downloads that satisfy the requirement SQLAlchemy

Tags:

  • Ubuntu 12.04
  • Apache 2.2.22

pip has stopped working on my ubuntu server and gives the below error when I try to download anything.

$ sudo pip install SQLAlchemy Downloading/unpacking SQLAlchemy   Cannot fetch index base URL http://pypi.python.org/simple/   Could not find any downloads that satisfy the requirement SQLAlchemy No distributions at all found for SQLAlchemy Storing complete log in /home/user/.pip/pip.log 

All of the below also do not work

$ sudo pip install --upgrade pip  $ sudo apt-get install build-essential 

My /etc/environment has the below settings which were working previously.

http_proxy="http://myproxyhere:portnumberhere/" HTTP_PROXY="http://myproxyhere:portnumberhere/" 

My /home/user/.pip

------------------------------------------------------------ /usr/bin/pip run on Sat Jun  7 20:08:38 2014 Downloading/unpacking SQLAlchemy    Getting page http://pypi.python.org/simple/SQLAlchemy   Could not fetch URL http://pypi.python.org/simple/SQLAlchemy: <urlopen error [Errno 111] Connection refused>   Will skip URL http://pypi.python.org/simple/SQLAlchemy when looking for download links for SQLAlchemy   Getting page http://pypi.python.org/simple/   Could not fetch URL http://pypi.python.org/simple/: <urlopen error [Errno 111] Connection refused>   Will skip URL http://pypi.python.org/simple/ when looking for download links for SQLAlchemy   Cannot fetch index base URL http://pypi.python.org/simple/    URLs to search for versions for SQLAlchemy:   * http://pypi.python.org/simple/SQLAlchemy/   Getting page http://pypi.python.org/simple/SQLAlchemy/   Could not fetch URL http://pypi.python.org/simple/SQLAlchemy/: <urlopen error [Errno 111] Connection refused>   Will skip URL http://pypi.python.org/simple/SQLAlchemy/ when looking for download links for SQLAlchemy   Could not find any downloads that satisfy the requirement SQLAlchemy  No distributions at all found for SQLAlchemy  Exception information: Traceback (most recent call last):   File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 126, in main     self.run(options, args)   File "/usr/lib/python2.7/dist-packages/pip/commands/install.py", line 223, in run     requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)   File "/usr/lib/python2.7/dist-packages/pip/req.py", line 948, in prepare_files     url = finder.find_requirement(req_to_install, upgrade=self.upgrade)   File "/usr/lib/python2.7/dist-packages/pip/index.py", line 152, in find_requirement     raise DistributionNotFound('No distributions at all found for %s' % req) DistributionNotFound: No distributions at all found for SQLAlchemy 

Has anyone got any idea what might be going wrong?

like image 341
Deepend Avatar asked Jun 07 '14 20:06

Deepend


1 Answers

Answer: upgrade pip.

I had version 1.1 installed. With sudo pip install --upgrade pip I got version 8.1.2 and the package I wanted installed properly.

like image 62
u_Ltd. Avatar answered Sep 21 '22 12:09

u_Ltd.