Scipy: from ._sparsetools import csr_tocsc, csr_tobsr, csr_count_blocks, \ ImportError: DLL load failed: Не найден указанный модуль.

Created on 6 Sep 2018  ·  3Comments  ·  Source: scipy/scipy

In PyCharm I want to install scipy in project interpreter. But some errors was thrown

Error message:

Traceback (most recent call last):
  File "C:/Users/Den/PycharmProjects/LogisticRegressionForIris/main.py", line 1, in <module>
    from sklearn.model_selection import train_test_split
  File "C:\Users\Den\AppData\Local\Programs\Python\Python37-32\lib\site-packages\sklearn\__init__.py", line 134, in <module>
    from .base import clone
  File "C:\Users\Den\AppData\Local\Programs\Python\Python37-32\lib\site-packages\sklearn\base.py", line 11, in <module>
    from scipy import sparse
  File "C:\Users\Den\AppData\Roaming\Python\Python37\site-packages\scipy\sparse\__init__.py", line 229, in <module>
    from .csr import *
  File "C:\Users\Den\AppData\Roaming\Python\Python37\site-packages\scipy\sparse\csr.py", line 15, in <module>
    from ._sparsetools import csr_tocsc, csr_tobsr, csr_count_blocks, \
ImportError: DLL load failed: Не найден указанный модуль.

Scipy/Numpy/Python version information:

<<Output from 'import sys, scipy, numpy; print(scipy.__version__, numpy.__version__, sys.version_info)'>>
1.1.0 1.15.1 sys.version_info(major=3, minor=7, micro=0, releaselevel='final', serial=0)
duplicate

Most helpful comment

Your Scipy installation is broken. Examples:

6548

https://github.com/hmmlearn/hmmlearn/issues/87
https://github.com/winpython/winpython/issues/300
https://github.com/scikit-learn/scikit-learn/issues/3537

http://www.xavierdupre.fr/app/pymyinstall/helpsphinx/blog/2015/2015-11-09_issue_sklearn.html

It might be the Python 3.7 wheels but this usually happens when two different SciPy or Python installations interfere. For example virtual environment tries to access system installation etc.

All 3 comments

Your Scipy installation is broken. Examples:

6548

https://github.com/hmmlearn/hmmlearn/issues/87
https://github.com/winpython/winpython/issues/300
https://github.com/scikit-learn/scikit-learn/issues/3537

http://www.xavierdupre.fr/app/pymyinstall/helpsphinx/blog/2015/2015-11-09_issue_sklearn.html

It might be the Python 3.7 wheels but this usually happens when two different SciPy or Python installations interfere. For example virtual environment tries to access system installation etc.

Thanks! I reinstalled python. At the begining I had python 3.7.0x32, now I installed python 3.7.0x64. Hope it may help someone

Tried to install different versions of python and scipy with no success. Then realized that i don't have this problem on two machines with visual studio installed. So my working configuration : VS 2019 Community edition, Python x64, scipy from scikit-learn pip installation.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

nschloe picture nschloe  ·  4Comments

leynier picture leynier  ·  3Comments

nschloe picture nschloe  ·  5Comments

fakekarma picture fakekarma  ·  3Comments

gvr37leo picture gvr37leo  ·  3Comments