Search code examples
pythondjangopippackagingpackage-managers

Installing external, unverfied package with Pip 1.5


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?


Solution

  • Try invoking:

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