Tensorflow: why 'pip uninstall tensorflow' cannot find tensorflow

前端 未结 2 1268
我在风中等你
我在风中等你 2021-02-12 16:19

I\'m using Tensorflow-0.8 on Ubuntu14.04. I first install Tensorflow from sources and then setup Tensorflow for development according to the official tutorial. When I want to un

2条回答
  •  感情败类
    2021-02-12 16:53

    It could be because you didn't install Tensorflow using pip, but using python setup.py develop instead as your link shows.

    pip uninstall is likely to fail if the package is installed using python setup.py install as they do not leave behind metadata to determine what files were installed.

    Therefore, you should be able to unistall Tensorflow with the option -u or --unistall of develop

    cd /home/AIJ/tensorflow/_python_build
    python setup.py develop --uninstall
    

    To answer for the second (interestring) question about the two dist-package created under /usr/lib/python2.7 and /usr/local/lib/python2.7 it exists already a great Stack Overflow answer on the topic.

    PS: Tensorflow is a good library, you should consider not uninstall it :)

提交回复
热议问题