Search code examples
pythondjangopython-3.xpipsetuptools

"Could not find a version that satisfies the requirement" error for Django2 app installation


I'm newbie Python/Django programmer.

I created an application based on Django 2.0 and packaged it according to the official document. Then I run the command:

$ pip install --user django-easybuggy-0.1.tar.gz

However, I get the error and cannot install.

Processing ./django-easybuggy-0.1.tar.gz
Collecting certifi==2018.1.18 (from django-easybuggy==0.1)
  Could not find a version that satisfies the requirement certifi==2018.1.18 (from django-easybuggy==0.1) (from versions: )
No matching distribution found for certifi==2018.1.18 (from django-easybuggy==0.1)

Does anyone know the reason why the error occurs and how to fix it?

In addition, I created requirements.txt by the command:

$ pip freeze > requirements.txt

Steps to reproduce:

  1. Download my application archive:

    $ wget https://github.com/k-tamura/easybuggy4django/releases/download/0.0.1/django-easybuggy-0.1.tar.gz
    
  2. Run the command:

    $ pip install --user django-easybuggy-0.1.tar.gz
    

Best regards,


Solution

  • I can fix my problem by adding options:

    --proxy=http://[proxy_user_id]:[proxy_user_password]@[proxy_host]:[proxy_port]/ --trusted-host pypi.python.org  --trusted-host pypi.org  --trusted-host files.pythonhosted.org
    

    to pip install.