ImportError: cannot import name '_ccallback_c'

后端 未结 7 1247
一向
一向 2020-12-11 00:32

Initially I was getting this error (No Module name was found scipy) So I installed a Scipy wheel file. Now I don\'t get the same error any more but I get cannot import

7条回答
  •  攒了一身酷
    2020-12-11 01:11

    When you installed scipy with pip in a Python version 3.6 and later try to run your code with Python 3.7 you will encounter this problem. So one solution is to uninstall scipy

    pip3 uninstall scipy
    

    and reinstall it (using an environment with Python 3.7):

    pip3 install scipy 
    

    This will make sure that the installed version of scipy is compatible with your version of Python.

    PS: When you updated Python from Python 3.6 to Python 3.7 it might be necessary to also reinstall pip, so that pip will use the correct version of Python internally.

提交回复
热议问题