ImportError: cannot import name '_ccallback_c'

后端 未结 7 1228
一向
一向 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:19

    Having just moved to MSVS 2017 for Python (ML) development, I encountered this and other errors related to missing modules. The problem (and all related problems like it) has a frustratingly simple solution: when I originally started coding in Python, I installed everything from the command line - apparently, MSVS 2017 doesn't "see" those installations (and, in fact, they sometimes conflict, since the underlying python may be tapping older libs); so, the solution is to:

    Use the command line version of 'pip uninstall ...' where '...' is the library having missing dependencies (scipy, in this case). Then, in the MSVS 2017 command line on the Python environment window (usually, top right in the default display configuration), reload the library (in this case, typing 'scipy' will format a command line for execution [in the list control below the command textbox]) that will read something like 'pip install scipy' (or whatever library needs to be reinstalled for MSVS).

    You may have to do this for many (or all) of your previous Python package installations where these missing module errors persist.

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