Error importing scipy.sparse._sparsetools

前端 未结 3 478
一生所求
一生所求 2021-01-13 00:04

I\'m working on a macbook pro trying to use the gensim package to do Word2Vec. I had used the model earlier in the week, but when I tried to resume using it, I was given an

相关标签:
3条回答
  • 2021-01-13 00:39

    I had this issue with python 3.7 on windows 10 for both x86 and x64 version. Using dependency walker I found msvcp120.dll is missing. Placing the same in python root folder solved the issue for me.

    0 讨论(0)
  • 2021-01-13 00:55

    Your issue is likely caused by a linking problem described in this github issue.

    Since you are already using anaconda, probably the best strategy for you is to use compiled binaries instead of trying to compile with pip yourself.

    The only two things you have to do is:

    pip uninstall scipy
    conda install scipy
    
    0 讨论(0)
  • 2021-01-13 00:59

    I had the same problem and fixed it by uninstall and reinstall scipy package.

    If you are not a conda user check it out:

    pip uninstall scipy
    
    # or
    
    apt-get remove python-scipy
    
    # Then:
    
    pip install scipy
    

    In Python3:

    pip3 uninstall scipy
    
    # or
    
    apt-get remove python3-scipy
    
    # Then:
    
    pip3 install scipy
    
    0 讨论(0)
提交回复
热议问题