Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

pip3: command not found but python3-pip is already installed

Tags:

python

pip

I can't use pip3 though python3-pip has already been installed. How to solve the problem?

sudo pip3 install virtualenv
sudo: pip3: command not found

sudo apt-get install python3-pip
Reading package lists... Done
Building dependency tree       
Reading state information... Done
python3-pip is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 11 not upgraded.
like image 900
Searene Avatar asked Jun 23 '15 02:06

Searene


People also ask

Why do I have pip3 but not pip?

This version does not include pip . If you download and install python3 from python.org, then you will get pip3 as the command to install python modules for python3. If you download an updated version of python 2.7 from python.org, that will come with pip .

Is python3-pip pip3?

Pip3 is the Python3 version of pip. If you use pip, then only the python2. 7 version will be installed.

Does python3 install pip3?

Install Pip3. pip3 is the official package manager and pip command for Python 3. It enables the installation and management of third party software packages with features and functionality not found in the Python standard library.


2 Answers

You can use python3 -m pip as a synonym for pip3. That has saved me a couple of times.

like image 170
user2394284 Avatar answered Oct 16 '22 14:10

user2394284


I had a similar issue. In my case, I had to uninstall and then reinstall pip3:

sudo apt-get remove python3-pip
sudo apt-get install python3-pip
like image 69
Kumar Avatar answered Oct 16 '22 15:10

Kumar