安装Anaconda2.4.0后无法导入scipy

我试图在Windows上导入Python 2.7.10中的numpy和scipy

我一直无法通过pip或以下提供的二进制文件安装scipy:

http://www.lfd.uci.edu/~gohlke/pythonlibs/#scipy

但我听说Anaconda标配了numpy和scipy。 值得注意的是我可以成功导入numpy。

conda list

打印出所有的软件包,scipy是其中之一,但导入仍然失败。

当我跑步

$ conda install scipy

这就是我所看到的:

$ conda install scipy
Fetching package metadata: ....
Solving package specifications: ..................
Package plan for installation in environment c:UsersNickAnaconda2:

The following NEW packages will be INSTALLED:

conda-env: 2.4.4-py27_1

Proceed ([y]/n)? y

Linking packages ...
"Ensuring that c:UsersNickAnaconda2Librarybin is on user PATH environment variable."
"" was unexpected at this time.
Error: Error: post-link failed for: conda-env-2.4.4-py27_1

当我跑步

$ conda install -f scipy

这就是我所看到的:

$ conda install -f scipy
Fetching package metadata: ....
Solving package specifications: ..................
Package plan for installation in environment c:UsersNickAnaconda2:

The following packages will be UPDATED:

scipy: 0.16.0-np110py27_0 --> 0.16.0-np110py27_0

Proceed ([y]/n)? y

[      COMPLETE      ]|##################################################| 100%
Extracting packages ...
[      COMPLETE      ]|##################################################| 100%
Unlinking packages ...
[      COMPLETE      ]|##################################################| 100%
Linking packages ...
[      COMPLETE      ]|##################################################| 100%

它似乎工作,但当我然后尝试导入scipy在我的Python程序的顶部,我得到:

$ python steps.py
Traceback (most recent call last):
  File "steps.py", line 16, in <module>
    import scipy as st
ImportError: No module named scipy 

我在做导入错误吗?


从我的研究,特别是github.com/conda/conda/issues/1786我相信Anaconda 2.4.0 scipy失败。 解决方案是获得更新版本的Anaconda或考虑安装最新的Miniconda。

链接地址: http://www.djcxy.com/p/87179.html

上一篇: Unable to import scipy after installing Anaconda2.4.0

下一篇: Numpy/scipy deprecation warning for "rank"