python - no module named numpy python2.7 -
i'm using python 2.7 on linux centos 6.5. after using yum
install numpy
, unable import module.
from numpy import *
the above code produces following error:
no module named numpy
why happen?
cent os have default version of python 2.6.6 , might have configured python 2.7 may @ /usr/local/lib.
yum install install package in site-package directory of 2.6 please check /usr/lib/python2.6/site-packages, if numpy package folder present have either install numpy python 2.7 using tarball , run setup.py.
the other hack copy numpy directory 2.6 version's site-packages 2.7 version's site-package.
Comments
Post a Comment