Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

No distributions at all found for some package

Tags:

python

django

error when installing some package but its actualy existing example django-ajax-filtered-fields==0.5

Downloading/unpacking django-ajax-filtered-fields==0.5 (from -r requirements.example.pip (line 13)) Could not find any downloads that satisfy the requirement django-ajax-filtered-fields==0.5(from -r requirements.example.pip (line 13)) No distributions at all found for django-ajax-filtered-fields==0.5 Storing debug log for failure in /home/pd/.pip/pip.log (peecs)pd@admin:~/proj/django/peecs$ pip install django-ajax-filtered-fields==0.5 --allow-unverified django-ajax-filtered-fields==0.5 Downloading/unpacking django-ajax-filtered-fields==0.5 Could not find any downloads that satisfy the requirement django-ajax-filtered-fields==0.5 Some externally hosted files were ignored (use --allow-external django-ajax-filtered-fields to allow). Cleaning up... No distributions at all found for django-ajax-filtered-fields==0.5 Storing debug log for failure in /home/pd/.pip/pip.log

like image 554
errakeshpd Avatar asked Apr 22 '14 14:04

errakeshpd


3 Answers

Note that this error may also occure because you are using too old version of pip. Then it can be solved by:

pip install --upgrade pip

You can check your version by:

pip --version
like image 145
snakey Avatar answered Nov 18 '22 00:11

snakey


I got the solution ,Try with --allow-unverified

syntax: pip install packagename=version --allow-unverified packagename

Some package condains insecure and unverifiable files. it will not download to the system . and it can be solved by using this method --allow-unverified. it will allow the installation.

Eg: pip install django-ajax-filtered-fields==0.5 --allow-unverified django-ajax-filtered-fields

like image 24
errakeshpd Avatar answered Nov 17 '22 23:11

errakeshpd


Proxy Settings

Still unsure if my issue has the same cause as with the OP, but one error message was the same:

  Cannot fetch index base URL https://pypi.python.org/simple/
  Could not find any downloads that satisfy the requirement Django
No distributions at all found for Django

Talking to a colleague exposed it was a site-security-based issue. The following commands were required:

set https_proxy=*https proxy*
set http_proxy=*http proxy*
pip install Django

where *https proxy* and *http proxy* are appropriate URLs-with-ports for our site.

Downloading/unpacking Django
Installing collected packages: Django
Successfully installed Django
Cleaning up...
like image 3
Martin F Avatar answered Nov 17 '22 23:11

Martin F