Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

scipy and numpy install on linux without root

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?

like image 759
liumilan Avatar asked Sep 25 '13 06:09

liumilan


People also ask

How do I get SciPy for Linux?

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.


1 Answers

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.

like image 154
ev-br Avatar answered Sep 21 '22 13:09

ev-br