On 2010-01-06, at 7:21 PM, Alexander Hansen wrote:

> -----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-----

I am using just 'python' in terminal and 'which python' returns 
'/usr/bin/python'
so, 
- how would I search for other versions/installations of numpy?
- how could I tell the python I'm using to use /sw/bin/python as well as the 
site-packages of fink?

Thanks,
Claus
------------------------------------------------------------------------------
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