ImportError: cannot import name 'abs'

后端 未结 9 1850
我寻月下人不归
我寻月下人不归 2020-12-17 18:42

I got problem while doing object detection using tensorflow-gpu

I was follwing the youtube tutorials :https://www.youtube.com/watch?v=Rgpfk6eYxJA

I\'m trying

9条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-17 19:36

    Suggested solution on the following link worked for me

    https://github.com/tensorflow/tensorflow/issues/20778#issuecomment-410962482

    The full solution to this issue is to clean up all TF installation files from your system. Here is how to do that. Run the following first:
    
    $ pyhthon
    > import tensorflow as tf
    > tf.__file__
    'path/to/your/python/installation/site-packages/tensorflow/__init__.pyc'
    
    From the above command, you need to go and remove the folder
    
    path/to/your/python/installation/site-packages/tensorflow
    
    Finally, you need to run
    
    $ pip uninstall tensorflow # Also add -gpu if you installed the GPU version
    $ pip install tensorflow # Also add -gpu if you installed the GPU version
    
    Then it should work.
    

提交回复
热议问题