Have you set the path in your profile (e.g.
.bash_profile or .login) to the python 2.5.2
installation? Do the correct numpy, scipy, etc. get
loaded when you import them? If so, then the system
is looking in the right site-packages directory. It
should be seeing your .pth file, but I could not say
why that fails. On the other hand, if the packages
are not importing (you are getting import errors),
then you need to set the path to Python 2.5.2, first
in your profile file which loads when you start a new
Terminal session/login.
In your profile there should be a line like this one
added to PATH:
PATH="/Library/Frameworks/Python.framework/Versions/Current/bin:/usr/local/:/usr/local/bin/:${PATH}"
You need to point to the current version (the
/Library/... path) and you need to point to
/usr/local/bin before /bin which is why they are
pre-pended to PATH in the above.
I hope that helps.
--- newbie73 <[EMAIL PROTECTED]> wrote:
>
> Just installed Leopard (10.5) and have been
> configuring my python setup.
> First I installed python 2.5.2 from python.org and
> then began building the
> libraries I need to use (numpy/scipy, etc).
>
> After reading through the forums, I ran across the
> following fixes:
>
> placing a .pth file in
> /Library/Python/2.5/site-packages with code to
> insert
> my custom paths (including
> /library/python/2.5/site-packages) in the
> PYTHONPATH variable, yet they do not seem to appear.
> I have also placed
> environment.plist in ~/.MacOSX with a PYTHONPATH key
> which looks like this:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST
> 1.0//EN"
> "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
> <plist version="1.0">
> <dict>
> <key>DISPLAY</key>
> <string>:0.0</string>
> <key>PYTHONPATH</key>
> <string>/Library/Python/2.5/site-packages:</string>
> </dict>
> </plist>
>
>
> This also does not work. I'm a bit confused on what
> to do now to get my
> paths to appear in PYTHONPATH - anybody have any
> suggestions?
-- Lou Pecora, my views are my own.
____________________________________________________________________________________
Looking for last minute shopping deals?
Find them fast with Yahoo! Search.
http://tools.search.yahoo.com/newsearch/category.php?category=shopping
_______________________________________________
Pythonmac-SIG maillist - [email protected]
http://mail.python.org/mailman/listinfo/pythonmac-sig