I just installed the py27-numpy package via MacPorts and python will not find the module when I use this command: import scipy
I used the help('modules')
command and the scipy port did not come up.
Clearly the path is not configured correctly or MacPorts is not installing in the correct place, but either way, it would solve my problem to know where this package is being installed.
Where can I find the path to MacPorts-installed package, py27-scipy?
Output of echo $PATH
command:
/Library/Frameworks/Python.framework/Versions/2.7/bin:/opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:directory/bin
I cannot find the package in any of those locations.
Thanks for the help.
PATH
environment variable is simply for your shell (probablybash(1)
) to find programs to execute without a qualified path name:cat
rather than/bin/cat
,ftp
rather than/usr/bin/ftp
, etc. (It is also used by theexeclp(3)
andexecvp(3)
functions, but that use is less frequent than the shell.) It's got nothing to do with Python module search path,PYTHONPATH
. Seepython(1)
for more information onPYTHONPATH
andbash(1)
for information onPATH
. – sarnold