Tensorflow: why 'pip uninstall tensorflow' cannot find tensorflow

前端 未结 2 1881
再見小時候
再見小時候 2021-02-12 15:59

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条回答
  •  闹比i
    闹比i (楼主)
    2021-02-12 16:59

    I believe pip isn't installed for python2.7

    try :

    pip -V
    

    On my system for instance it says :

    pip 8.1.2 from /usr/lib/python3.4/site-packages (python 3.4)
    

    So basically using pip uninstall will only remove packages for python3.4 (and not python2.7).

    So I don't use pip binary as such, and rather, call pip module from inside python.

    In your case :

    python2.7 -m pip uninstall tensorflow
    

提交回复
热议问题