> pip install yolk
Downloading/unpacking yolk
Cannot fetch index base URL https://pypi.python.org/simple/
Could not find any downloads that satisfy the requirement yolk
No distributions at all found for yolk
Storing complete log in /Users/harith/.pip/pip.log
when I read the file I see
> cat /Users/harith/.pip/pip.log
------------------------------------------------------------
/Users/harith/.shared/virtualenvs/pennytracker/bin/pip run on Mon Jul 1 20:26:02 2013
Downloading/unpacking yolk
Getting page https://pypi.python.org/simple/yolk/
Could not fetch URL https://pypi.python.org/simple/yolk/: HTTP Error 503: Service Unavailable
Will skip URL https://pypi.python.org/simple/yolk/ when looking for download links for yolk
Getting page https://pypi.python.org/simple/
Could not fetch URL https://pypi.python.org/simple/: HTTP Error 503: Service Unavailable
Will skip URL https://pypi.python.org/simple/ when looking for download links for yolk
Cannot fetch index base URL https://pypi.python.org/simple/
URLs to search for versions for yolk:
* https://pypi.python.org/simple/yolk/
Getting page https://pypi.python.org/simple/yolk/
Could not fetch URL https://pypi.python.org/simple/yolk/: HTTP Error 503: Service Unavailable
Will skip URL https://pypi.python.org/simple/yolk/ when looking for download links for yolk
Could not find any downloads that satisfy the requirement yolk
No distributions at all found for yolk
Exception information:
Traceback (most recent call last):
File "/Users/harith/.shared/virtualenvs/pennytracker/lib/python2.7/site-packages/pip-1.3.1-py2.7.egg/pip/basecommand.py", line 139, in main
status = self.run(options, args)
File "/Users/harith/.shared/virtualenvs/pennytracker/lib/python2.7/site-packages/pip-1.3.1-py2.7.egg/pip/commands/install.py", line 266, in run
requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
File "/Users/harith/.shared/virtualenvs/pennytracker/lib/python2.7/site-packages/pip-1.3.1-py2.7.egg/pip/req.py", line 1026, in prepare_files
url = finder.find_requirement(req_to_install, upgrade=self.upgrade)
File "/Users/harith/.shared/virtualenvs/pennytracker/lib/python2.7/site-packages/pip-1.3.1-py2.7.egg/pip/index.py", line 171, in find_requirement
raise DistributionNotFound('No distributions at all found for %s' % req)
DistributionNotFound: No distributions at all found for yolk
Am i doing anything wrong?
For me it worked a simple
sudo pip -I install <package>
.As
man pip
states,-I
ignores installed packages, forcing reinstall instead.I had a similar problem with pip and easy_install:
Cannot fetch index base URL https://pypi.python.org/simple/
As suggested in the referenced blog post, there must be an issue with some older versions of OpenSSL being incompatible with pip 1.3.1.
Installing pip-1.2.1 is a working workaround.
Possibly related question.
[Edit]:
This definitely happens in RHEL/CentOS 4 distros
I had that problem too, after I tried to reset my network settings. it solves problem.
pip has mirror support
As of version 1.5, this option will be removed:
This is the full text of the blog post linked below:
If you've tried installing a package with pip recently, you may have encountered this error:
This seems to be an issue with an old version of OpenSSL being incompatible with pip 1.3.1. If you're using a non-stock Python distribution (notably EPD 7.3), you're very likely to have a setup that isn't going to work with pip 1.3.1 without a shitload of work.
The easy workaround for now, is to install pip 1.2.1, which does not require SSL:
If you are using EPD, and you're not using it for a class where things might break, you may want to consider installing the new incarnation: Enthought Canopy. I know they were aware of the issues caused by the previous version of OpenSSL, and would imagine they are using a new version now that should play nicely with pip 1.3.1.
I faced the same issue and this error is because of 'Proxy Setting'. The syntax below helped me in resolving it successfully: