skip to Main Content

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!

EDIT:

Using pip -V informes that it is using pip 20.3.4 (python 3.9)

I have Python 3.10.9 installed, and the console informs me version 22.3.1 is also installed

Requirement already satisfied: pip in /usr/local/lib/python3.10/site-packages (22.3.1)

Anyone know how to use version 22.3.1 ?

3

Answers


  1. did you tested get-pip.py?

    simply download it from here, and run

    python get-pip.py
    
    Login or Signup to reply.
  2. 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

    Login or Signup to reply.
  3. 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
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search