Custom Search

Tuesday, May 30, 2017

How to install NumPy SciPy Matplotlib for Python 3 and Python 2.7

1)
#For Python 2.7
sudo apt-get install python-pip python-dev

sudo pip install numpy scipy matplotlib
sudo pip uninstall numpy scipy matplotlib
OR
sudo apt-get install python-numpy python-scipy python-matplotlib
sudo apt-get purge python-numpy python-scipy python-matplotlib

2)
#For python 3 and abov
e
sudo apt-get install python3-pip python3-dev

sudo pip3 install numpy scipy matplotlib
sudo pip3 uninstall numpy scipy matplotlib
OR
sudo apt-get install python3-numpy python3-scipy python3-matplotlib
sudo apt-get purge python3-numpy python3-scipy python3-matplotlib