From ._sparsetools Import Csr_tocsc, Csr_tobsr, Csr_count_blocks, \importerror: Dll Load Failed: The Specified Module Could Not Be Found
Solution 1:
[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.
Solution 2:
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
Solution 3:
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
Solution 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.
Solution 5:
I had the same problem while using SciPy. I uninstalled the 32 bit version of Python and reinstalled 64 bit latest version. After doing so the error was no longer there.
Post a Comment for "From ._sparsetools Import Csr_tocsc, Csr_tobsr, Csr_count_blocks, \importerror: Dll Load Failed: The Specified Module Could Not Be Found"