If I try to use pip3 I see:

$ pip3 --version Command 'pip3' not found, but can be installed with: sudo apt install python3-pip 

So I run:

$ sudo apt install python3-pip Reading package lists... Done Building dependency tree Reading state information... Done python3-pip is already the newest version (9.0.1-2.3~ubuntu1). 0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded. 

Then:

$ pip3 --version Command 'pip3' not found, but can be installed with: sudo apt install python3-pip 

Are the instructions just wrong?

4

2 Answers

I fixed it following the instructions from this solution to Unable to correctly install pip3 using apt-get:

Uninstall pip3 using

sudo apt-get remove python3-pip 

Delete the directory

 $HOME/.local/lib/python3.6/site-packages # (python3.6 instead of 3.5) 

Reinstall pip3 using apt-get

sudo apt-get install python3-pip 

after this I did:

python3 -m pip install --upgrade pip 

then pip3 -V replied: pip 20.2.2 from /home/…

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy