我试图通过http://www.lfd.uci.edu/~gohlke/pythonlibs/预编译的Windows二进制文件在Windows 7中使用Python sklearn
我已经安装了
安装时没有任何错误。在另一个具有相同错误的SO线程之后,我确保C:/ python35都在我的Path
中,并设置为PYTHONPATH
。
我也安装了Visual Studio 2013 C ++。
当我转到import sklearn
时,我收到此错误:
C:\Users\user>python
Python 3.5.0 (v3.5.0:374f501f4567, Sep 13 2015, 02:27:37) [MSC v.1900 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import sklearn
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Python35\lib\site-packages\sklearn\__init__.py", line 57, in <module>
from .base import clone
File "C:\Python35\lib\site-packages\sklearn\base.py", line 9, in <module>
from scipy import sparse
File "C:\Python35\lib\site-packages\scipy\sparse\__init__.py", line 213, in <module>
from .csr import *
File "C:\Python35\lib\site-packages\scipy\sparse\csr.py", line 13, in <module>
from ._sparsetools import csr_tocsc, csr_tobsr, csr_count_blocks, \
ImportError: DLL load failed: The specified module could not be found.
更新:BrianCain建议将Visual Studio C ++升级到2015版本工作!