Frage

I am trying to install django-admin-tools 0.5.1 using pip 1.5.5 with Python 2.7.6 on Ubuntu 14.04.

I first tried:

$ pip install django-admin-tools==0.5.1
Downloading/unpacking django-admin-tools==0.5.1
  Could not find a version that satisfies the requirement django-admin-tools==0.5.1 (from versions: 0.4.0)
  Some externally hosted files were ignored (use --allow-external to allow).
Cleaning up...
No distributions matching the version for django-admin-tools==0.5.1
Storing debug log for failure in /tmp/tmpd5Tb2I

The documentation at 'pip help install' says:

 --allow-external <package>  Allow the installation of externally hosted files

Trying with that flag enabled:

$ pip install --allow-external django-admin-tools==0.5.1                                                                                                                 
You must give at least one requirement to install (see "pip help install")

That was weird. After a little tinkering, I found that the external package URL was not https (setup.py). So I tried with the flag --allow-unverified:

$ pip install --allow-external --allow-unverified django-admin-tools==0.5.1                                                                                              
Downloading/unpacking django-admin-tools==0.5.1
  Could not find a version that satisfies the requirement django-admin-tools==0.5.1 (from versions: 0.4.0)
  Some externally hosted files were ignored (use --allow-external to allow).
Cleaning up...
No distributions matching the version for django-admin-tools==0.5.1
Storing debug log for failure in /tmp/tmpoT1_tW

Am I using it wrong? How to work around this and install django-admin-tools using pip?

War es hilfreich?

Lösung

Try invoking:

pip install django-admin-tools==0.5.1 --allow-external django-admin-tools --allow-unverified django-admin-tools

Andere Tipps

Both --allow-unverified and --allow-external take package name as an argument.

From pip help install:
--allow-external <package>   Allow the installation of a package even if it
                             is externally hosted
--allow-unverified <package> Allow the installation of a package even if it 
                             is hosted in an insecure and unverifiable way

So your usage should be

pip install <pkg> --allow-unverified <pkg> --allow-external <pkg>

or the little confusing:

pip install --allow-unverified <pkg> --allow-external <pkg> <pkg>

I found the solution:

$ pip install django-admin-tools==0.5.1 --allow-unverified django-admin-tools

Related bug report #1814 - pip.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top