How do you know where macports installs python packages to?

Posted by xmaslist on Super User See other posts from Super User or by xmaslist
Published on 2010-12-11T16:55:01Z Indexed on 2012/07/07 9:19 UTC
Read the original article Hit count: 194

I am running macports to install scipy and such on OS X leopard with python 2.7. The install runs successfully, but running python and trying to import the packages I've installed, they're not found.

What I'm running is:

sudo python_select python27 
sudo port install py27-wxpython py27-numpy py27-matplotlib 
sudo port install py27-scipy py27-ipython

Opening up python in interactive mode (it is the correct version of python), I type 'import scipy' and get a module not found error. What gives? How can I find out where it is installing the packages to instead?

© Super User or respective owner

Related posts about osx

Related posts about Troubleshooting