-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 1/6/10 1:09 PM, Claus wrote:
> Thanks Robert and Daniel for your responses.
> I did 
> 
>     fink install scipy-py26
> 
> it worked and was successful!
> 
> Now, 
> 
>     /sw/lib/python2.6/site-packages
> 
> is the only place on my computer, as far as spotlight can tell me, where
> both numpy and scipy reside.
> When I invoke python on the terminal, and 
> 
>     import numpy
> 
> it works, 
> 
>     import scipy
> 
> results in
> 
>     ImportError: No module named scipy
> 
> 
> Doing
> 
>     echo $PATH
> 
> results in
> 
>     
> /sw/bin:/sw/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/texbin:/usr/X11/bin:/usr/X11R6/bin
> 
> 
> How can import numpy work, if /sw/lib/python2.6/site-packages is not in
> the path. But if import numpy works, how come import scipy does not work...
> ... and what do I need to change?
> 
> Thanks again,
> Claus
> 
> 
> 

Spotlight's not that useful for searching the system area.

What command are you using when you "run python"?  And if that's just
'python', then what do you get from 'which python'?

If you're not using /sw/bin/python2.6, then whatever interpreter you're
running doesn't know about scipy, and you may be importing an arbitrary
non-Fink numpy from elsewhere on your system.

- -- 
Alexander Hansen
Fink User Liaison
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAktE1KoACgkQB8UpO3rKjQ8apwCgmmRyo+SEqoM5egm0wwfBfAix
im0An0iwl7v+mwsgCp7pv9FXQIR4uMDv
=+8o1
-----END PGP SIGNATURE-----

------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
Fink-beginners mailing list
[email protected]
http://news.gmane.org/gmane.os.apple.fink.beginners

Reply via email to