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

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

    For each Tensorflow's version, it requires different version of CuDnn. On www.tensorflow.org, they did not mentioned about that in installation guide!

    My case use tensorflow version 1.3 which uses cuDNN 6. https://github.com/tensorflow/tensorflow/releases.

    Please check your tensorfow version and cuDNN version if they are match together.

    And please set path environment for cuDNN, if it still does not work, please check the answer from @Chris Han.

提交回复
热议问题