pythontensorflowubuntu-16.04uninstallationtensorflow-estimator

Unable to uninstall Tensorflow - Folders still remain in dist-packages


I installed tensorflow using sudo pip3.6 install tensorflow==1.7 (I already had tensorflow 1.6 but wanted to upgrade) however I am unable to uninstall it. I tried sudo pip3.6 uninstall tensorflow and it said that tensorflow is successfully uninstalled but I don't think that's true. I get the following error when I try to run a tensorflow python code (which ideally should say import error I guess)

AttributeError: module 'tensorflow.python.training.checkpointable' has no attribute 'CheckpointableBase'

Using sudo pip3.6 uninstall tensorflow again only shows

Skipping tensorflow as it is not installed.

I looked around a little and found the following folders in usr/local/lib/python3.6/dist-packages/

It seems to be a mess. Can I go ahead and simply delete these folders? What is the correct way to removing these?


Solution

  • Yes, you need to delete it manually, you can follow the below steps to do it.

    I hope this solves your issue.