Upgraded python not finding Macport installed modules
brad at pixilla.com
Mon Feb 22 17:00:56 PST 2010
I believe the idea of the port python_select is to put the macports
python in your path.
On Feb 22, 2010, at 4:59 PM, 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
> $ which python
> 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'm relatively new to all
> this and I haven't yet found a clear solution in my online searches.
> Thank you for any assistance,
> macports-users mailing list
> macports-users at lists.macosforge.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the macports-users