我試圖導入numpy的和SciPy的Python中2.7.10在Windows無法安裝Anaconda2.4.0
我已經無法通過PIP安裝SciPy的或提供的二進制文件後導入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:\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
當我運行
$ conda install -f scipy
這是我所看到的:
$ 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 ]|##################################################| 100%
Extracting packages ...
[ COMPLETE ]|##################################################| 100%
Unlinking packages ...
[ COMPLETE ]|##################################################| 100%
Linking packages ...
[ COMPLETE ]|##################################################| 100%
這似乎是工作,但是當我再嘗試在我的Python程序的頂部導入SciPy的,我得到:
$ python steps.py
Traceback (most recent call last):
File "steps.py", line 16, in <module>
import scipy as st
ImportError: No module named scipy
我做進口錯了嗎?
我猜Anaatha尚未正確安裝在您的路徑上。嘗試運行你從命令提示符運行'python --version'和'where python'。它看起來像是Anaconda python嗎? – JoshAdel
可能是這裏討論的一個錯誤:https://github.com/conda/conda/issues/1786 - 看一看。 – Shevchuk
我得到同樣的問題 – Koba