MacPorts pHash not showing up in Python
- by Nitzan Wilnai
I am having a problem where python does not show pHash installed even though I installed it using macports.
I made sure I am using the MacPorts version of Python by doing:
sudo port select --set python python27
I then installed pHash by doing:
sudo port install pHash.
It installed without any errors.
When I call help('modules'), I do not see pHash listed among the installed packages.
Any ideas on why python is not seeing the pHash install by MacPorts?
Calling port select --list python shows the following:
Available versions for python:
none
python25-apple
python26-apple
python27 (active)
python27-apple
Printing out sys.path outputs the following: (reformatted to make it easier to read here)
['/Library/Python/2.7/site-packages/boto-2.9.9-py2.7.egg',
'/Library/Python/2.7/site-packages/setuptools-0.9.8-py2.7.egg',
'/Library/Python/2.7/site-packages/pip-1.4.1-py2.7.egg',
'/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python27.zip',
'/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7',
'/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-darwin',
'/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac',
'/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac/lib-scriptpackages',
'/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk',
'/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-old',
'/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload',
'/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages',
'/Library/Python/2.7/site-packages']
Can anyone help?
Thanks.