Installing Scipy On Ubuntu
Solution 1:
What worked for me:
To actually install scipy from PIP, you need packages libatlas-base-dev
(libraries etc. for ATLAS/BLAS) and gfortran
(GNU Fortran compiler).
Once these packages are installed, the scipy installer should finish as expected.
Solution 2:
Ubuntu puts library files in a rather exotic directory.
/usr/lib/x86_64-linux-gnu/
or something, depending on your architecture.
You need to add this directory to the site.cfg file or the BLAS environment variable.
If easy install also needs the header files, you need to install the respective -dev packages.
But, like @pitsanu-swangpheaw suggests, you can also install to the site packages directory using the ubuntu package manager.
sudo apt-get install python-numpy python-scipy
Solution 3:
If you are using Python3, You can install packages using apt-get
sudo apt-get install python3-numpy python3-scipy
Solution 4:
sudo apt-get install python-scipy
worked in my case.
Solution 5:
If you want to still install using pip
, you can use build-dep to get the dependencies of python-numpy and python-scipy, and then install using pip
sudo apt-get build-dep python-numpy python-scipy
Substitute for python3 as the other answers state of that's what you're looking for.
Post a Comment for "Installing Scipy On Ubuntu"