On Windows, running “import tensorflow” generates No module named “_pywrap_tensorflow” error

后端 未结 23 3858
误落风尘
误落风尘 2020-11-22 06:55

On Windows, TensorFlow reports either or both of the following errors after executing an import tensorflow statement:

  • No module named \"_pyw
23条回答
  •  南旧
    南旧 (楼主)
    2020-11-22 07:28

    Either error indicates that your system has not installed MSVCP140.DLL, which TensorFlow requires.

    To fix this error:

    1. Determine whether MSVCP140.DLL is in your %PATH% variable.
    2. If MSVCP140.DLL is not in your %PATH%, install the Visual C++ 2015 redistributable (x64 version), which contains this DLL.

提交回复
热议问题