No Module Named '_pywrap_tensorflow_internal'

前端 未结 10 1524
自闭症患者
自闭症患者 2020-12-03 17:23

While trying to validate the installation of tensorflow-gpu, I get an ImportError when trying to execute \"import tensorflow as tf\". I am using a Quadro K620 on Windows 7.

相关标签:
10条回答
  • 2020-12-03 17:35

    https://github.com/tensorflow/tensorflow/issues/7705

    switch to cuDNN 5.1 instead of 6.0

    0 讨论(0)
  • 2020-12-03 17:39

    After you install the CUDA Drivers you must download cuDNN and release it. After that you get to copy the cudnn64_5.dll to PATH.
    If that doesn't work, move the cudnn64_5.dll to NVIDIA GPU Computing Toolkit\CUDA\v8.0\bin and try it again. Otherwise you'd meet some error that you see.

    0 讨论(0)
  • 2020-12-03 17:41

    I had the same error with anaconda, it was previously installed with another program through anaconda. Installing again through conda-forge worked: conda install -c conda-forge tensorflow

    0 讨论(0)
  • 2020-12-03 17:42

    I still got this error after installing cuDNN 5.1 (yes, I had PATH set correctly). I had better luck installing tensorflow_gpu from this site. This requires cuDNN 6.0, not 5.1. Unfortunately they currently only have Tensorflow 1.1 for GPU systems.

    0 讨论(0)
  • 2020-12-03 17:43

    I came across the same issue today, please switch to cuDNN v5.1 Library for Windows instead as @mickdelaney suggested and then try to

    1. Check environment settings of CUDA, normally all the settings of CUDA had been added to Windows environment

    2. Copy files in bin, lib and include of cuDNN to bin, lib and include of CUDA respectively. Normally the directory is C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA

    And then you can import tensorflow and run your code. Good luck!

    0 讨论(0)
  • 2020-12-03 17:43

    you could uninstall the current version of tensorflow and try a low version such as TensorFlow 0.12 using the code

    pip install --upgrade https://storage.googleapis.com/tensorflow/windows/cpu/tensorflow-0.12.0rc0-cp35-cp35m-win_amd64.whl
    

    https://blog.csdn.net/baidu_36669549/article/details/79734590

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