ImportError when importing certain modules from SciPY

前端 未结 5 2038
北海茫月
北海茫月 2020-11-27 07:19

I have used Scipy for some time. This is the first time I am using it for Signal processing! But when I import modules like

from scipy import signal
from sci         


        
相关标签:
5条回答
  • 2020-11-27 07:57

    This problem can be solved if instead of installing the usual numpy distribution, the numpy-MKL package is installed. This package is available here.

    Do remove the previous installation before going with the new one!

    0 讨论(0)
  • 2020-11-27 07:57

    I already had numpy+mkl installed, but still I faced similar error. Reinstalling has solved the issue:

    pip uninstall numpy-1.13.1+mkl-cp35-cp35m-win_amd64.whl
    pip install numpy-1.13.1+mkl-cp35-cp35m-win_amd64.whl
    
    0 讨论(0)
  • 2020-11-27 08:00

    I had this issue on 3.6 and reinstalling didn't work,downloading the wheel didn't work. I found a solution that did work:

    go to "site-packages/scipy" folder and open __init__.py file for editting. At the very bottom add this line of code:

    from . import signal
    from . import special
    from . import linalg
    from . import <insert missing submodule here>
    

    this is the only solution that has worked for me and it should work for any one

    0 讨论(0)
  • 2020-11-27 08:04

    Similar to the OP, I already had the Intel MKL libraries installed on my system. I was unable to load scipy.linalg with the same error message. I uninstalled the old version of numpy and scipy (which I installed before installing the Intel compilers and math libraries). Then ran pip install scipy, and magically I could now import scipy.linalg without the error.

    I'm not entirely sure what caused it, and why it was unable to find the library it needed. But it somehow fixed the problem for me on Python 3.7.1 with Anaconda.

    0 讨论(0)
  • 2020-11-27 08:10

    I installed numpy-MKL from here for Python 3.5.1, but it didn't solve the problem until I added the folder C:\Program Files\Python35\Lib\site-packages\numpy\core to system path.

    0 讨论(0)
提交回复
热议问题