I am new to python and django. In my requirements\common.txt I have the following line with version:
django-simple-captcha==0.5.*
the problem is that when I run pip install -r requirements\common.txt
, as I have version 0.5.3 of that package, it wouldn't update it to latest version (0.5.6), only pip --upgrade requirements\common.txt
would upgrade to latest version. Is there anyway to modify common.txt
file so running pip install
installs the latest version?
I am asking because this file is going to be used by a couple of developers and if they have for example version 0.5.3 of that package already, it would'nt upgrade it and there are lots of packages needing upgrade.
tnx
The current version of pip works on: Windows, Linux and MacOS. CPython 3.7, 3.8, 3.9, 3.10 and latest PyPy3.
Using Requirements Files. The pip install command always installs the latest published version of a package, but sometimes your code requires a specific package version to work correctly.
Update a package: pip install --upgrade To update installed packages to the latest version, run pip install with the --upgrade or -U option.
-U or --upgrade will update listed packages
Example:
pip install django-simple-captcha -U
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