7

I have 14.04. I read on the pip readthedocs that pip is included by default with Python 3. When I installed Python 3 on Windows it was there, but I'm getting pip command not found on Ubuntu. I checked dpkg and it is not there. I also looked at the Ubuntu Python 3 port page and did not see anything. If pip is here, where do I find it and get it working? If it is not here, why and what else is missing from the default Python 3 that I should know about so I don't waste time looking for it?

1

1 Answer 1

5

Open the terminal and type:

sudo apt-get install python3-pip  

python3-pip is the Python 3 version of the alternative Python package installer. This program is run from a terminal using: pip3.

Another program that is bundled with the default implementation of Python in Windows and is a separate package in Ubuntu is the IDLE Integrated Development Environment for Python 3 (idle3). I don't use IDLE myself. I much prefer Spyder (spyder3).

10
  • 1
    Just to be clear: Is the command for pip3 pip, pip3, or pip-3.2, as in this answer superuser.com/questions/769920/… Apr 2, 2015 at 23:06
  • I was anticipating the some additional questions that weren't in your original question such as what about Enhanced interactive Python shell (ipython3) and Python 3 virtual environment creator (python3-venv)? python3-venv is in the default Ubuntu repositories starting with Ubuntu 14.10. The command to install a package using the pip3 (from the Ubuntu repos) is: sudo pip3 install some-package-name. The command to uninstall a package using pip3 is: sudo pip3 uninstall some-package-name. These commands are for a global install. The same commands without sudo are used for a local install
    – karel
    Apr 3, 2015 at 3:53
  • 1
    Even though I did sudo apt install python3.8 and the current Ubuntu python is 3.7, this answer worked for me. Aug 11, 2019 at 4:29
  • Well this does not work for me on python3.8 $ pip3 -V pip 9.0.1 from /usr/lib/python3/dist-packages (python 3.6) Apr 1, 2020 at 21:25
  • 1
    @nealmcb The default version of python3-pip has been upgraded in Ubuntu 20.04 to 20.0.2-5ubuntu1.1. That's a big version upgrade.
    – karel
    Oct 28, 2020 at 3:52

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.