from ._sparsetools import csr_tocsc, csr_tobsr, csr_count_blocks, \ImportError: DLL load failed: The specified module could not be found

安稳与你 提交于 2019-12-23 18:38:27

问题


I need your help please When I wrote:

>>> from skimage import io

I get at the end the following:

from ._sparsetools import csr_tocsc, csr_tobsr, csr_count_blocks, \
ImportError: DLL load failed: The specified module could not be found.

How can I fix it? Any help would be appreciated


回答1:


I believe I have solved your issue, as I encountered the same problem in a completely different way.

You need to update your windows C++ redistributable compiler.

To understand if this is the solution.

  • Check what versions of microsoft C++ redistributable you have installed
    • if you're using windows 10 type apps and features into the start bar and scroll down to where it says microsoft visual C++ and look at the year. In my case I was using a version from 2010
  • If you aren't running the latest version download microsoft visual studio 2017
  • Select the visual studio community 2017

    • Once prompted to install specific packages, click on the menu item that says "individual components", it is located next to the menu item "Workloads"
    • Scroll down and look for Visual C++ 2017 Redistributable Update
    • Install that restart your machine
    • You'll be able to verify that this worked by running the following code in your console

import scipy
scipy.test('full')

Note for the above code to execute you'll need to install the pytest module

pip install pytest



回答2:


its may be a problem with your python idle version. you may using a 64 bit pc and having 32 bit python. please uninstall existing one and install 64 bit python




回答3:


[Solution] -

You need to install the C++ distribution for Visual Studio. Please click on this link - Download C++ re-distribution here and Download Visual Studio 2015, 2017 and 2019 according to your OS.

Once downloaded please install it and re-run your code.

Congratulations!! Your code is running green now.




回答4:


Clearly installation is broken so reinstall scipy and numpy .if it does not solve then add this issue on git repository of scipy module.



来源:https://stackoverflow.com/questions/52299542/from-sparsetools-import-csr-tocsc-csr-tobsr-csr-count-blocks-importerror

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!