I want to get the latest version (8.1.2) of an item. I am using Ubuntu 14.04 and python 2.7.6. The pip version in Ubuntu repositories is only 1.5.4 (and cannot install things like numpy). How are you really going to upgrade pip? I discovered several ways; they may all be equivalent, but it would be good to know for sure.
Option 1: update pip with pip and change link
apt-get install python-pip pip install
Option 1a: As above, but use python -m pip
pip install --upgrade pip pip --version # still shows 1.5.4 python -m pip --version # 8.1.2, success!
Option 2: easy_install
easy_install -U pip pip --version # 8.1.2, success!
Option 3: Use virtualenv (I know that virtualenvs are awesome, but I am doing the installation in a docker container, so I was just going to install things all over the world).
virtualenv test123 source test123/bin/activate pip --version
Option 4: The pip site suggests using their get-pip.py script, but also says that this may leave the Ubuntu package manager in an inconsistent state.
Option 5: Updating Python: "pip is already installed if you are using Python 2> = 2.7.9", but this seems like an overkill.
Is one of them the preferred method? Is there a better way I haven't found? Can I say this?
source share