Upgraded python not finding Macport installed modules

Ryan Schmidt ryandesign at macports.org
Mon Feb 22 18:13:57 PST 2010


On Feb 22, 2010, at 18:59, D B wrote:

> I am using Mac OS X 10.5.8 and I previously upgraded from the manufacturer-installed Python 2.5.1 to Python 2.6.4.  I recently tried using MacPorts to install the python module py-pil (Python Imaging Library, http://www.pythonware.com/products/pil/index.htm) and it seemed to install successfully.  However, when I tried to execute "import Image" from the Python interpreter (according to the tutorial http://www.pythonware.com/library/pil/handbook/introduction.htm), the error "ImportError: No module named Image" was returned (N.B. the interpreter shows that it is configured for Python 2.6.4).  At the terminal I get the following:
> 
> 
> $ locate py-pil
> /opt/local/var/macports/sources/rsync.macports.org/release/ports/python/py-pil

The py-pil port is for python 2.4. For python 2.6, you want the py26-pil port.



More information about the macports-users mailing list