2

I am trying to run the bash script and i am repeatedly incurring following error

File "/usr/share/fsl/5.0/bin/aff2rigid", line 75, in <module> from numpy import * ImportError: No module named numpy 

I have installed latest version of Numpy

dev@dev-OptiPlex-780:~$ sudo apt-get install python-numpy python-numpy is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 75 not upgraded. 

I do not understand why this error repeats when i have already installed the latest version of Numpy.

kindly let me know if there is something i am doing it wrong

1 Answer 1

3

Except installing python-numpy library you have to install numpy with pip or easy_install, one of commands below:

# install numpy with pip pip install numpy # install numpy with easy_install easy_install numpy 
Sign up to request clarification or add additional context in comments.

15 Comments

Following is the error i am getting error: can't create or remove files in install directory The following error occurred while trying to add or remove files in the installation directory: [Errno 13] Permission denied: '/usr/local/lib/python2.7/dist-packages/test-easy-install-30804.write-test'
I did the same as you suggested and this is the output ------ dev@dev-OptiPlex-780:~$ pip install numpy Requirement already satisfied (use --upgrade to upgrade): numpy in /usr/lib/python2.7/dist-packages Cleaning up
run sudo pip uninstall numpy, after run sudo pip install numpy, then start python interpreter and try import numpy
I have done what you have suggested and this is the reply ------------dev@dev-OptiPlex-780:~$ sudo pip uninstall numpy Not uninstalling numpy at /usr/lib/python2.7/dist-packages, owned by OS
That's rare , try to run pip install numpy --user and make sure that ~/.local/bin is in the $PATH
|