Windows上的sklearn / sci-py(Python 3.5)导入时出现DLL错误

时间:2015-12-16 16:29:40

标签: python python-3.x scikit-learn

我试图通过http://www.lfd.uci.edu/~gohlke/pythonlibs/预编译的Windows二进制文件在Windows 7中使用Python sklearn

我已经安装了

  • DASK-0.7.5-py2.py3-NONE-any.whl
  • scikit_learn-0.17-CP35-NONE-win_amd64.whl
  • SciPy的-0.16.1-CP35-NONE-win_amd64.whl
  • numpy-1.9.3 + mkl-cp35-none-win_amd64.whl
  • 大熊猫-0.17.1-CP35-NONE-win_amd64.whl

安装时没有任何错误。在另一个具有相同错误的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版本工作!

0 个答案:

没有答案