From 02bc2227390a459f5cd697b7da79a3fbde3d33f2 Mon Sep 17 00:00:00 2001 From: troymc Date: Mon, 8 Aug 2016 17:38:50 +0200 Subject: [PATCH] docs: moved instructions for updating pip to Appendices --- docs/source/appendices/install-latest-pip.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 docs/source/appendices/install-latest-pip.md diff --git a/docs/source/appendices/install-latest-pip.md b/docs/source/appendices/install-latest-pip.md new file mode 100644 index 00000000..fac7dbed --- /dev/null +++ b/docs/source/appendices/install-latest-pip.md @@ -0,0 +1,20 @@ +# How to Install the Latest pip and setuptools + +You can check the version of `pip` you're using (in your current virtualenv) by doing: +```text +pip -V +``` + +If it says that `pip` isn't installed, or it says `pip` is associated with a Python version less than 3.4, then you must install a `pip` version associated with Python 3.4+. In the following instructions, we call it `pip3` but you may be able to use `pip` if that refers to the same thing. See [the `pip` installation instructions](https://pip.pypa.io/en/stable/installing/). + +On Ubuntu 14.04, we found that this works: +```text +sudo apt-get install python3-pip +``` + +That should install a Python 3 version of `pip` named `pip3`. If that didn't work, then another way to get `pip3` is to do `sudo apt-get install python3-setuptools` followed by `sudo easy_install3 pip`. + +You can upgrade `pip` (`pip3`) and `setuptools` to the latest versions using: +```text +pip3 install --upgrade pip setuptools +``` \ No newline at end of file