On Mon, Oct 12, 2009 at 12:54 PM, Chris Phoenix <cphoe...@gmail.com> wrote:

> BTW, the install of pygame somehow didn't set the python path
> correctly, so I had to cd to
>
> Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages
> to run this command, and in my programs I do:
>
> import sys
>
> sys.path.append('/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages')
>
> Hmmm.. that doesn't sound right. Python extension libraries are not
supposed to be changing your python path when they install. Your python
install should already be using the right "site-packages" directories for
whichever version of python you are running.

It sounds like the python you are running is not the python 2.5 framework
version you installed, which is the one pygame installs in. You are probably
running the system python instead (on OS X 10.5, it's a python 2.5.1 install
using /Library/Python/2.5/site-packages), which most extensions avoid
installing in because it belongs to the system.

What does "which python" at the shell tell you?
What python version is printed when you just run "python" from a command
shell to get at the python shell?
How do things work out if you run python using
"/Library/Frameworks/Python.framework/Versions/2.5/bin/python" instead?

Reply via email to