Manuel Ignacio López Quintero

Do you like this article? Share it with this link. Thanks!

Install Python for scientific computing on Ubuntu or Debian

Install Python for scientific computing from the repositories is very easy.

1. Keep Ubuntu or Debian up to date

Open your terminal and execute:

sudo apt-get update && sudo apt-get upgrade && sudo apt-get dist-upgrade && sudo apt-get autoremove

2. Install the dependencies

Now install the dependencies:

3. Install more dependencies (optional)

  1. OpenGL: sudo apt-get install python3-opengl.
  2. GUI development: sudo apt-get install python3-pyqt5 python3-pyqt5.qtopengl python3-pyqt5.qtquick.
  3. Data storage: sudo apt-get install python3-h5py.

4. Computer Vision

It is recommended to install OpenCV on Ubuntu or Debian that contains Python wrappers. You can install more packages with sudo apt-get install python3-skimage and sudo apt-get install libatlas-dev libatlas3gf-base && sudo pip3 install scikit-learn.

5. Install an IDE for Python

Execute sudo apt-get install spyder3 to install Spyder. If you want to enjoy the autocomplete in the IDE execute: sudo pip3 install rope_py3k.

Do you like this article? Share it with this link. Thanks!