error: Failed to load the native TensorFlow runtime

前端 未结 14 1673
终归单人心
终归单人心 2020-12-08 10:36

i\'m new to tensorflow, today i installed tensorflow using:

C:\\>pip3 install --upgrade tensorflow
Collecting tensorflow
  Using cached tensorflow-1.2.0-c         


        
相关标签:
14条回答
  • 2020-12-08 11:12

    You may want to install Microsoft Visual C++ Redistributable for Visual Studio 2015, 2017 and 2019.

    Download msvcp140.dll and add to System32 folder.

    0 讨论(0)
  • 2020-12-08 11:14

    my worked after this line of code pip install tensorflow --upgrade --force-reinstall

    0 讨论(0)
  • 2020-12-08 11:15

    Pay attention to CUDA operation, since exactly this error is reported when CUDA is not working at all. Try from cmd e.g. c:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v8.0\extras\demo_suite>oceanFFT.exe
    If it fails, try to update driver (Device manager / Display adapters / NVIDIA...) of your graphics card.

    0 讨论(0)
  • 2020-12-08 11:15
    1. go to [https://github.com/fo40225/tensorflow-windows-wheel][1]
    2. based on python and cuda version copy one of the path(I used compiler:VS2017 15.8 ,CUDA:NO ,SIMD:x86_64 and this worked for me)

    3. paste it after https://github.com/fo40225/tensorflow-windows-wheel/blob/master/

    4. download *.whl

    5. open anaconda and change directory to location of *.whl

    6. run this command: pip install *.whl (instead of * must be use name of .whl file)

    0 讨论(0)
  • 2020-12-08 11:17

    Here is a solution:

    If you want to have Tensorflow Version 2 with the least dependencies, use this version:

    pip install tensorflow==2.0.0b1
    
    0 讨论(0)
  • 2020-12-08 11:17

    1) I did this : pip uninstall tensorflow
    2) Downloaded the file from: tensorflow wheel
    3) Then did this : pip install tensorflow-1.6.0-cp36-cp36m-win_amd64.whl

    BUT it gave me this Error

    ERROR: tensorflow-1.6.0-cp36-cp36m-win_amd64.whl is not a supported wheel on this platform.

    so I tried to install tensorflow as a dependency in my installed Anaconda Navigator
    AND IT WORKED FOR ME!

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