Failed to load the native TensorFlow runtime. Python 3.5.2

My computer is Windows with CPU and I have had same issues. I uninstall tensorflow 1.9 and install 1.5 instead. It works right now.


Try:

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

to install tensorflow instead of:

pip install --upgrade tensorflow-gpu

I managed to run Tensorflow on Windows following these steps. Hope it helps! It may change depending in which folder you installed Python.

  1. Download and install Python 3.5.x
  2. Download and install Nvidia CUDA Toolkit
  3. Download CuDNN 5.1
  4. Copy CuDNN files to Nvidia CUDA toolkit folder when 2. has completed (usually is located on C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v8.0)

    • copy cudnn\bin\cudnn64_5.dll to C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v8.0\bin\
    • copy cudnn\include\cudnn.h to C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v8.0\include\
    • copy cudnn\lib\x64\cudnn.lib to C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v8.0\lib\x64\
  5. Install Tensorflow via pip command prompt 'pip install --upgrade tensorflow-gpu'

    5.1 TensorFlow dependencies

    • make sure that Visual C++ Redistributate 2015 x64 is installed. If not, download it
    • move _curses_curses.cp35-win_amd64.pyd and _curses_panel.cp35-win_amd64.pyd to C:\Users\Username\AppData\Local\Programs\Python\Python35\Lib\site-packages (or you may need to download them as the next packages. just Ctrl+f for 'curses')
    • download and install these packages via pip (move to the directory where they were downloaded, open a command prompt and make 'pip install package_name')
      • numpy+mkl (http://www.lfd.uci.edu/~gohlke/pythonlibs/#numpy)
        • download numpy‑1.12.1+mkl‑cp35‑cp35m‑win_amd64.whl
        • pip install numpy‑1.12.1+mkl‑cp35‑cp35m‑win_amd64.whl
      • scipy (http://www.lfd.uci.edu/~gohlke/pythonlibs/#scipy)
        • download scipy‑0.19.0‑cp35‑cp35m‑win_amd64.whl
        • pip install scipy‑0.19.0‑cp35‑cp35m‑win_amd64.whl
    • open command prompt and make 'pip install matplotlib'