From 6cca4cf55c5b886c0f296938d1590d01ac81d86a Mon Sep 17 00:00:00 2001 From: "Bryan W. Weber" Date: Mon, 26 Oct 2015 10:32:31 -0400 Subject: [PATCH] [Doc] Recommend to use pip to install optional Python packages on Ubuntu --- doc/sphinx/install.rst | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/doc/sphinx/install.rst b/doc/sphinx/install.rst index 76655f5fe..9cd47e692 100644 --- a/doc/sphinx/install.rst +++ b/doc/sphinx/install.rst @@ -369,6 +369,21 @@ library), which are also available from the above link. Matplotlib is required to run some of the Python examples. For Python 2, these packages can be installed with:: + pip2 install ipython matplotlib + +And for Python 3, these packages can be installed with:: + + pip3 install ipython matplotlib + +You may need to install ``pip`` first; instructions can be found on the +`pip installation instructions. +`_ +You may need to have superuser access to install packages into the system +directories. Alternatively, you can add ``--user`` after ``pip install`` but +before the package names to install into your local user directory. An +alternative method is to use the Ubuntu repositories, but these tend to +be very out of date. For Python 2, the command is:: + sudo aptitude install ipython python-matplotlib And for Python 3, these packages can be installed with::