已安装的python包numpy和scipy导入错误,但scikit-learn工作正常

时间:2016-02-21 09:34:14

标签: python numpy scipy scikit-learn pip

我在Windows 8系统上安装了scikit-learn,numpy和scipy软件包。我使用Python 3.5 当我尝试导入sklearn时,它工作正常,但是numpy和scipy会出现Importerror。此外,尽管sklearn导入成功,但我无法从中导入特定模块。请参阅下面的代码片段:

C:\Users\CAN U VISH>python
Python 3.5.1 (v3.5.1:37a07cee5969, Dec 6 2015, 01:38:48) [MSC v.1900 32 bit       (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import numpy
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named 'numpy'
>>> import scipy
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named 'scipy'
>>> import sklearn
Import Success
>>> from sklearn import datasets
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: cannot import name 'datasets'
>>>

P.S。由于pip安装失败,我使用miniconda安装了numpy和scipy

0 个答案:

没有答案