Importing SciPy or scikit-image, “from scipy.linal

2019-04-19 14:08发布

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)?

8条回答
Evening l夕情丶
2楼-- · 2019-04-19 15:05

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.

查看更多
beautiful°
3楼-- · 2019-04-19 15:08

In my case, this solution is working.

window 10 64 bit, Python 3.6.3

  1. delete Numpy and Scipy
  2. download window binaries of Numpy and Scipy from https://www.lfd.uci.edu/~gohlke/pythonlibs/
  3. install Numpy and Scipy
  4. pip3 install scipy-stack

Then, it is working.

查看更多
登录 后发表回答