> 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
cuando leo el archivo veo
> 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
¿Estoy haciendo algo mal?
Es porque en la configuración de pip el parámetro index-url debería apuntar a la nueva url de pypi. Cambie el archivo en ~/.pip/pip.conf
o si está ejecutando pip como root, en: /root/.pip/pip.conf
.
Probablemente tengas esto:
[global]
index-url=http://f.pypi.python.org/simple
Deberías cambiarlo por esto:
[global]
index-url=https://pypi.python.org/pypi/
Y entonces todo debería funcionar como antes. Espero que te ayude.
La explicación está en sus registros:
Could not fetch URL https://pypi.python.org/simple/yolk/: HTTP Error 503: Service Unavailable
Observe el HTTP Error 503: Service Unavailable
. Parece que el sitio estaba caído cuando intentabas hacer esto.
Es bueno saber que los errores HTTP 5xx son errores del lado del servidor, por lo que puedes saber que el problema no estaba en tu red local sino en la red remota.
Significa que vuelva a intentarlo más tarde ;-) (y cruzar los dedos...) (A mí me funciona ahora, por cierto.)
pip tiene mirror support
pip --use-mirrors install yolk
A partir de la versión 1.5, esta opción será eliminada:
1.5 (sin publicar) >
BACKWARD INCOMPATIBLE pip ya no soporta las opciones --use-mirrors, -M, y --mirrors flags. El soporte de mirroring ha sido eliminado. Para usar un espejo especifíquelo como índice primario con -i o --index-url, o como índice adicional con --extra-index-url. (Pull #1098, CVE-2013-5123) > BACKWARD INCOMPATIBLE pip ya no raspará urls externas inseguras de forma predeterminada ni instalará archivos alojados externamente de forma predeterminada. Los usuarios pueden optar por instalar archivos alojados externamente o inseguros o usando --allow-external PROJECT y --allow-insecure PROJECT. (Pull #1055)
Añadido colores a la salida de registro con el fin de llamar la atención sobre advertencias y errores importantes. (Pull #1109)
Añadidas advertencias cuando se usa un índice inseguro, find-link, o dependency enlace. (Pull #1121)