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

后端 未结 23 3642
误落风尘
误落风尘 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:33

    TensorFlow requires MSVCP140.DLL, which may not be installed on your system. To solve it open the terminal en type or paste this link:

    C:\> pip install --upgrade https://storage.googleapis.com/tensorflow/windows/cpu/tensorflow-1.0.0-cp35-cp35m-win_amd64.whl 
    

    Note this is to install the CPU-only version of TensorFlow.

提交回复
热议问题