Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Importing SciPy or scikit-image, "from scipy.linalg import _fblas: Import Error: DLL failed"

I'm importing:

from scipy import misc, io 

But I get these errors:

Traceback (most recent call last):
  File "C:\work_asaaki\code\generateProposals.py", line 20, in <module>
    from scipy import misc, io
  File "C:\Python27\lib\site-packages\scipy\misc\__init__.py", line 47, in <module>
    from scipy.special import comb, factorial, factorial2, factorialk
  File "C:\Python27\lib\site-packages\scipy\special\__init__.py", line 548, in <module>
    from .basic import *
  File "C:\Python27\lib\site-packages\scipy\special\basic.py", line 17, in <module>
    from . import orthogonal
  File "C:\Python27\lib\site-packages\scipy\special\orthogonal.py", line 90, in <module>
    from scipy import linalg
  File "C:\Python27\lib\site-packages\scipy\linalg\__init__.py", line 159, in <module>
    from .misc import *
  File "C:\Python27\lib\site-packages\scipy\linalg\misc.py", line 5, in <module>
    from . import blas
  File "C:\Python27\lib\site-packages\scipy\linalg\blas.py", line 145, in <module>
    from scipy.linalg import _fblas
ImportError: DLL load failed: The specified module could not be found.
Exception in thread Thread-1 (most likely raised during interpreter shutdown):

I'm running 64-bit Windows 7, and Python 2.7, In Anaconda's Spyder. I've tried the following:

pip install scipy-stack # this couldn't find any downloads that satisfy scipy-stack
pip install _fblas # this wasn't found
pip install ipython # this was successful
pip install scikit-learn # this was successful
pip install scipy # this was successful

I tried downloading SciPy and SciPy-Stack and scitkit-image from http://www.lfd.uci.edu/~gohlke/pythonlibs/ but I don't know what's wrong - it seems all the links are broken. My download always fails midway. Is there any way out of this? (Without having to re-install Anaconda Spyder from scratch)?

like image 919
user961627 Avatar asked Aug 20 '14 13:08

user961627


4 Answers

For those who the previous answer doesn't solve the problem, take a look at the answer for this question: https://stackoverflow.com/a/17511983/1407575

Worked for me!

like image 133
Almog Cohen Avatar answered Oct 25 '22 07:10

Almog Cohen


I solved this problem on Windows 8.1 by installing Scipy‑stack‑14.8.27.win32‑py2.7.exe.

Apparently, scipy‑0.14.0.win32‑py2.7.exe was missing something.

like image 2
karlphillip Avatar answered Oct 25 '22 06:10

karlphillip


I faced the similar issue while working with statsmodels package for time series analytics. I am using Anaconda 3.X distribution. May of the answers pointing to install the numpy again form the mkl distribution after uninstalling the regular one.

That might be a good idea but i dont want to disturb my current environment, so i have create a new python virtual environment and installed packages using pip in the following order numpy>>scipy>>statsmodels

This did worked for me.

like image 2
Subbi reddy dwarampudi Avatar answered Oct 25 '22 07:10

Subbi reddy dwarampudi


I had the same problem and installing of the latest version of NumPy+MKL from http://www.lfd.uci.edu/~gohlke/pythonlibs/ helped me. By the way, strangely I couldn't install the .whl file via wheel, but installing via pip worked.

like image 1
Dimitrius Avatar answered Oct 25 '22 07:10

Dimitrius