I am trying to import numpy and scipy in Python 2.7.10 on Windows
I was unable to install scipy via pip or executables:
http://www.lfd.uci.edu/~gohlke/pythonlibs/#scipy
But I heard that Anaconda comes standard with numpy and scipy. It is worth noting that I can successfully import numpy.
conda list
prints all the packages, and scipy is one of them, but the import still does not work.
When i started
$ conda install scipy
Here is what I see:
$ conda install scipy Fetching package metadata: .... Solving package specifications: .................. Package plan for installation in environment c:\Users\Nick\Anaconda2: The following NEW packages will be INSTALLED: conda-env: 2.4.4-py27_1 Proceed ([y]/n)? y Linking packages ... "Ensuring that c:\Users\Nick\Anaconda2\Library\bin is on user PATH environment variable." "" was unexpected at this time. Error: Error: post-link failed for: conda-env-2.4.4-py27_1
When i started
$ conda install -f scipy
Here is what I see:
$ conda install -f scipy Fetching package metadata: .... Solving package specifications: .................. Package plan for installation in environment c:\Users\Nick\Anaconda2: The following packages will be UPDATED: scipy: 0.16.0-np110py27_0 --> 0.16.0-np110py27_0 Proceed ([y]/n)? y [ COMPLETE ]|
It seems to work, but when I try to import scipy at the top of my Python program, I get:
$ python steps.py Traceback (most recent call last): File "steps.py", line 16, in <module> import scipy as st ImportError: No module named scipy
Am I doing the wrong import?
source share