Sklearn / sci-py on Windows (Python 3.5) Import DLL Errors

I am trying to use sklearnon Windows 7 with Python 3.5 through precompiled Windows binaries at http://www.lfd.uci.edu/~gohlke/pythonlibs/

I have installed

  • Dask-0.7.5-py2.py3-no-any.whl
  • scikit_learn-0,17-cp35-no-win_amd64.whl
  • SciPy-0.16.1-cp35-no-win_amd64.whl
  • numpy-1.9.3 + mkl-cp35-none-win_amd64.whl
  • pandas -0.17.1-cp35-no-win_amd64.whl

no errors during installation. After another SO thread with the same error, I made sure that C: / python35 is in mine Pathand installs as PYTHONPATH.

I also have Visual Studio 2013 C ++ installed.

When I go to import sklearn, I get this error:

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 ++ 2015 !

+4

Source: https://habr.com/ru/post/1620384/


All Articles