How to install common Python3 packages for scientific computing
- Python modules:
- numPy, short for “Numerical Python”, is used for working with arrays.
- scipy, short for “Scientific Python”, is a scientific computation library that uses NumPy underneath, providing more utility functions for optimization, stats and signal processing.
- matplotlib is a low level graph plotting library in python that serves as a visualization utility.
- ipython is a command shell for interactive computing in multiple programming languages, originally developed for the Python programming language, that offers introspection, rich media, shell syntax, tab completion, and history.
- notebook, formely Ipython Notebook and now known as the Jupyter Notebook, is an interactive computational environment, in which you can combine code execution, rich text, mathematics, plots and rich media.
- pandas is a package for data manipulation and data analisis, mostly used for data science and machine learning.
- sympy is a process-based discrete-event simulation framework based on standard Python. Processes in SimPy are defined by Python generator functions and can, for example, be used to model active components like customers, vehicles or agents.
- nose extends the test loading and running features of unittest, making it easier to write, find and run tests.
- ATLAS, short for “Automatically Tuned Linear Algebra Software”, provides highly optimized Linear Algebra kernels for arbitrary cache-based architectures. ATLAS provides ANSI C and Fortran77 interfaces for the entire BLAS API, and a small portion of the LAPACK AP.
Linux
Debian-based (Debian, Ubuntu, Mint, etc…)
sudo su - root
pip install numpy scipy matplotlib ipython notebook pandas sympy nose
apt-get update -y
apt-get install -y libatlas-base-dev
RPM-based (Red Hat Linux, CentOS, Fedora, openSuse, Mandrake Linux)
sudo su - root
pip install numpy scipy matplotlib ipython pandas sympy nose
dnf update
dnf install atlas-devel
Windows
- Go to the Scripts folder inside your Python installation directory:
cd C:\PythonXX\Scripts\
- Run pip as follows:
pip.exe install numpy scipy matplotlib ipython notebook pandas sympy nose
macOS
- Install using Homebrew:
brew install numpy scipy matplotlib ipython jupyter pandas sympy nose
Leave a comment