<span style="font-family:arial, sans-serif;font-size:13px;border-collapse:collapse;white-space:pre">Hello, </span><div>
<span style="font-family:arial, sans-serif;font-size:13px;border-collapse:collapse;white-space:pre">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, <a href="http://www.pythonware.com/products/pil/index.htm" target="_blank">http://www.pythonware.com/products/pil/index.htm</a>) and it seemed to install successfully.  However, when I tried to execute &quot;import Image&quot; from the Python interpreter (according to the tutorial <a href="http://www.pythonware.com/library/pil/handbook/introduction.htm" target="_blank">http://www.pythonware.com/library/pil/handbook/introduction.htm</a>), the error &quot;ImportError: No module named Image&quot; was returned (N.B. the interpreter shows that it is configured for Python 2.6.4).  At the terminal I get the following:</span></div>

<div><font face="arial, sans-serif"><span style="border-collapse:collapse;white-space:pre"><span style="border-collapse:separate;font-family:arial;white-space:normal"><div><span class="Apple-style-span" style="border-collapse: collapse; white-space: pre;"><br>
</span></div><div>
<font face="arial, sans-serif"><span style="border-collapse:collapse;white-space:pre">$ locate py-pil</span></font></div>
<div><font face="arial, sans-serif"><span style="border-collapse:collapse;white-space:pre">/opt/local/var/macports/sources/<a href="http://rsync.macports.org/release/ports/python/py-pil" target="_blank">rsync.macports.org/release/ports/python/py-pil</a></span></font></div>

<div><span class="Apple-style-span" style="border-collapse: collapse; white-space: pre;"><br></span></div><div><font face="arial, sans-serif"><span style="border-collapse:collapse;white-space:pre">$ which python</span></font></div>

<div><font face="arial, sans-serif"><span style="border-collapse:collapse;white-space:pre">/Library/Frameworks/Python.framework/Versions/2.6/bin/python</span></font></div>
<div><span style="border-collapse:collapse;white-space:pre"><br></span></div></span></span></font></div><div><span style="font-family:arial, sans-serif;font-size:13px;border-collapse:collapse;white-space:pre">This seems to indicate that perhaps MacPorts is configured for the older Python version.  How can I resolve this?  Should I uninstall MacPorts (although I was warned by the MacPorts Guide against doing, thus this email) and try to re-install it?  Or is there an easier way that I can re-configure MacPorts?  I&#39;m relatively new to all this and I haven&#39;t yet found a clear solution in my online searches.</span></div>

<div><font face="arial, sans-serif"><span style="border-collapse:collapse;white-space:pre">Thank you for any assistance,</span></font></div>
<div><font face="arial, sans-serif"><span style="border-collapse:collapse;white-space:pre">David</span></font></div>
<div><font face="arial, sans-serif"><span style="border-collapse:collapse;white-space:pre"><br></span></font></div>