Search code examples
pythonpip

Proper way to install pip on Ubuntu


I'm trying to install the latest version of pip (currently 8.1.2) on the official ubuntu/trusty64 Vagrant box. The box comes with Python 2.7.6 and 3.4.3 pre-installed with apt-get.

I read the pip installation doc and it contains the following warning:

Be cautious if you're using a Python install that's managed by your operating system or another package manager. get-pip.py does not coordinate with those tools, and may leave your system in an inconsistent state.

Does that mean I cannot install pip using get-pip.py and I am limited to install an older version of it from apt-get?

If there is a better way of installing it, what would it be?

Thanks


Solution

  • I believe that you can install it on Ubuntu with

    sudo apt-get install python-pip
    

    or

    sudo apt-get install python3-pip
    

    for Python 3. Sure, it's an older version but its functionality is there.