In my Linux (ubuntu 12.04) system, I have python2.7.3 in /usr/bin
and python2.7.5 in /usr/local/bin
The modules like numpy are installed into /usr/share/pyshared
(by default when I use sudo apt-get install python-numpy
)
python2.7.3 can import the modules without any problems, while python2.7.5 cannot locate the modules. I have added /usr/share/pyshared
to $PATH
variable using /etc/profile
, but python2.7.5 still cannot find the modules.
Any suggestions?