Home > Blockchain >  How do I install pip on linux for Python 3.10.9
How do I install pip on linux for Python 3.10.9

Time:01-20

I was using sudo apt-get install python3-pip to get pip with older versions of Python, but as I understand I have to install a newer version of pip using some different approach because it is not uptodate using apt. I am using an Ubuntu pc and a Raspberry pi for reference, Many posts about this but what is the currently accepted approach as of Jan 2023? Thanks!

CodePudding user response:

did you tested get-pip.py?

simply download it from here, and run

python get-pip.py

CodePudding user response:

Based on my experience with Raspberry Pi, it should be straightforward with apt install.

sudo apt update
sudo apt install python3-pip

Verify the version:

pip3 --version

Odoo Forum Reference: https://www.odoo.com/forum/help-1/how-to-install-pip-in-python-3-on-ubuntu-18-04-167715

CodePudding user response:

sudo apt-get install python3-pip and then use

python3 -m pip install --upgrade pip to upgrade pip

or you can do that.

sudo python3.10.9 -m pip install pip
  • Related