ASKSAGE: Sage Q&A Forum - Individual question feedhttp://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Fri, 16 Jun 2017 16:14:04 -0500How to import numpyhttp://ask.sagemath.org/question/37959/how-to-import-numpy/ I am having problems importing numpy. I have sage 7.6 and am using terminal sessions on mac. Whenever I try "import numpy" I get an error message saying "Error importing numpy: you should not try to import numpy from its source directory; please exit the numpy source tree, and relaunch your python interpreter from there." I understand that this means some numpy software is not in the right file, but others, working on the same project as me, I know have not had to import any extra software for numpy to work. I'd really appreciate any help!Fri, 16 Jun 2017 07:00:48 -0500http://ask.sagemath.org/question/37959/how-to-import-numpy/Comment by nbruin for <p>I am having problems importing numpy. I have sage 7.6 and am using terminal sessions on mac. Whenever I try "import numpy" I get an error message saying "Error importing numpy: you should not try to import numpy from its source directory; please exit the numpy source tree, and relaunch your python interpreter from there." I understand that this means some numpy software is not in the right file, but others, working on the same project as me, I know have not had to import any extra software for numpy to work. I'd really appreciate any help!</p>
http://ask.sagemath.org/question/37959/how-to-import-numpy/?comment=37978#post-id-37978The error actually says that YOU are in the wrong spot. You are probably standing in a directory where there actually is a "numpy.py" present. If you make sure you're standing in a location where you get something like this:
$ ls numpy*
ls: cannot access 'numpy*': No such file or directory
things might work better.Fri, 16 Jun 2017 16:14:04 -0500http://ask.sagemath.org/question/37959/how-to-import-numpy/?comment=37978#post-id-37978Comment by kcrisman for <p>I am having problems importing numpy. I have sage 7.6 and am using terminal sessions on mac. Whenever I try "import numpy" I get an error message saying "Error importing numpy: you should not try to import numpy from its source directory; please exit the numpy source tree, and relaunch your python interpreter from there." I understand that this means some numpy software is not in the right file, but others, working on the same project as me, I know have not had to import any extra software for numpy to work. I'd really appreciate any help!</p>
http://ask.sagemath.org/question/37959/how-to-import-numpy/?comment=37961#post-id-37961Can you give more detail as to exactly which version you have etc? Do you have other installations of some Python (other than the usual system one) like from Conda? This should work fine.Fri, 16 Jun 2017 08:20:21 -0500http://ask.sagemath.org/question/37959/how-to-import-numpy/?comment=37961#post-id-37961