Home > Software engineering >  how to install latest version of python and pip in arch linux?
how to install latest version of python and pip in arch linux?

Time:06-27

My default operating system is ArchLinux and the Python version installed on it is 3.1. I installed version 3.9 using aur, but I do not know how to systematize this version of Python by default and install pip for it, because when I try to use pip, I get this message:

$ python3.9 -m pip
/usr/bin/python3.9: No module named pip

CodePudding user response:

Pip should be installed normally, and if not, there should be a package for pip, but if you cannot install it for whatever reason, installing pip can be done via the ensurepip module:

python -m ensurepip

Reference the documentation for more information.

  • Related