简体   繁体   中英

Difficulty getting Python 3.3 and numpy to work

I'm newer to python, but have seem to screwed things up trying out the new python.

I have an older mac which runs python 2.5 as it's default. I've installed python 3.3. However, when I upgraded numpy my python 2.5 now gives me the:

Error importing numpy: you should not try to import numpy from its source directory; please exit the numpy source tree, and relaunch your python intepreter from there.

regardless of the directory I run python from. And python 3.3 can't find the numpy module. Did I miss something? How can I get 2.5 running numpy again and get python 3.3 to find the module? I also can't get virtualenv to work as it gives me the error that the script needs python2.6, even after I installed virtualenv-2.5 and can't get the python=python3.3 to do anything either. I seem to have tried everything I can find. I'm afraid I've installed too much and have some hidden conflict. Thanks

download numpy from this site : http://www.lfd.uci.edu/~gohlke/pythonlibs/#numpy

In case you want to check the version of numpy on your system , write this following code on your IDE :

import numpy
numpy.version.version

Hope this would help !

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM