From 61eb0bae4fdb2b9c8d44f8361c38a4a671a33706 Mon Sep 17 00:00:00 2001 From: Frank Sauerburger <frank@sauerburger.com> Date: Mon, 7 Aug 2017 18:08:24 +0200 Subject: [PATCH] Switch from apt-get to pip for python packages Install numpy, scipy and matplotlib via the pip3 command and not via ubuntu's package manager, since this would install older versions. --- README.md | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 10749a0..a0ebe3f 100644 --- a/README.md +++ b/README.md @@ -21,10 +21,17 @@ additional packages `numpy`, `scipy` and `matplotlib` are useful for data analysis and data presentation. To install all the packages on Ubuntu, you can run the following command line. - ```bash -sudo apt-get install python3 python3-numpy python3-scipy python3-matplotlib +sudo apt-get install python3 python3-pip +sudo pip3 install numpy scipy matplotlib ``` + +This installs the most recent versions these three packages. If you install the +packages via ubuntus package manager, you will get older version. Ubuntu's +packages can hide the more up-to-date ones installed by pip3. My personal +recommandations is to always use pip and never install python packages via +ubuntus package manager if you want to use recent version of the packages. + <!-- Doxec in a docker container needs a slightly different command, please keep them in-sync. @@ -32,7 +39,8 @@ in-sync. <!-- console ```bash $ apt-get update -$ apt-get install -y python3 python3-numpy python3-scipy python3-matplotlib +$ apt-get -y install python3 python3-pip +$ pip3 install numpy scipy matplotlib ``` --> -- GitLab