A
A
Alexander Ivanov2021-10-27 13:03:35
Python
Alexander Ivanov, 2021-10-27 13:03:35

How to install pip specific version?

during installation, the command
sudo apt-get install python3-pip
puts the latest version of pip. I also need to install version 19.3.1, I can’t figure out how to do it

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vindicar, 2021-10-27
@Vindicar

Ok google, apt-get install version
sudo apt-get install <package name>=<version>
If that doesn't help, you can try reinstalling pip via pip itself. Something in the spirit

python -m pip install --force-reinstall pip==19.3.1

P
planc, 2021-10-27
@planc

https://docs.python.org/3/tutorial/venv.html
python -m ensurepip --help


--altinstall Make an alternate install, installing only the XY versioned scripts (Default: pipX, pipX.Y, easy_install-XY).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question