I am trying to install scipy
and numpy
. Because I don't have root privileges, when I tried to install numpy
first, I typed python setup.py install --prefix=/data3/home
which worked. When I then tried to install scipy
it reported this error:
File "setup.py", line 230, in <module>
setup_package()
File "setup.py", line 218, in setup_package
from numpy.distutils.core import setup
ImportError: No module named numpy.distutils.core
How can I fix this issue?
To install Scipy on Linux: One is simply using the inbuilt package manager that comes with the installation of Linux and the second is using the pip, the python package manager. Both the methods take merely a single command to install SciPy.
A more standard way around is to make a per-user install like described in PEP 370 :
pip install numpy --user
Or use a virtualenv.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With