Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

pip install the latest version

Tags:

python

pip

django

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

like image 338
Hamed Salimian Avatar asked May 13 '18 14:05

Hamed Salimian


People also ask

What is pip latest version?

The current version of pip works on: Windows, Linux and MacOS. CPython 3.7, 3.8, 3.9, 3.10 and latest PyPy3.

Does pip install always install latest version?

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.

How do I upgrade pip package?

Update a package: pip install --upgrade To update installed packages to the latest version, run pip install with the --upgrade or -U option.


1 Answers

-U or --upgrade will update listed packages

Example:

pip install django-simple-captcha -U
like image 119
Brianjs Avatar answered Oct 15 '22 06:10

Brianjs