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
Try download install package from https://pypi.python.org/pypi/pip#downloads and use
python setup.py install
If you are using Ubuntu OS with Python2.7 You can follow below steps
To check install pip version
OR
If you are using Ubuntu OS with Python3 You can follow below steps
To check install pip3 version
This worked for me on ubuntu 18.0.4:
if it is outdated you can use the following command:
sudo pip install --upgrade pip
I believe that you can install it on Ubuntu with
or
for Python 3. Sure, it's an older version but its functionality is there.
The proper commands to install pip and pip3 should be the following:
The last two lines get pip3 and pip up-to-date. The last line is critical because it re-associates pip with python 2.