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:
Download my application archive:
$ wget https://github.com/k-tamura/easybuggy4django/releases/download/0.0.1/django-easybuggy-0.1.tar.gz
Run the command:
$ pip install --user django-easybuggy-0.1.tar.gz
Best regards,
The package certifi==2018.1.18
was removed from PyPI. The current version is certifi==2018.4.16
. The reason for this is that certifi
is somewhat special: it is nothing else but a collection of root SSL certificates, so once they become stale and a new version of certifi
with new certs is released, the old ones are being deleted for security reasons - so you don't accidentally continue to install and use old and potentially revoked or compromised certificates.
The solution for you is to either drop the exact version requirement alltogether:
setup(
...
install_requires=['certifi'],
...
)
or to require a minimal version and (optionally) bump it with new releases of your package:
setup(
...
install_requires=['certifi>=2018.4.16'],
...
)
The latter is what I usually use: this way,
certifi
installed, it will be upgraded automatically to the currently newest one when your package is installed.If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With