无法卸载tensorflow和keras

无法卸载tensorflow和keras,tensorflow,keras,Tensorflow,Keras,当我输入命令时 pip uninstall keras pip uninstall tensorflow root@a26-03-06:/data01/yanan/keras# pip uninstall keras DEPRECATION: Python 3.4 support has been deprecated. pip 19.1 will be the last one supporting it. Please upgrade your Python as Python 3.4 w

当我输入命令时

pip uninstall keras
pip uninstall tensorflow

root@a26-03-06:/data01/yanan/keras# pip uninstall keras
DEPRECATION: Python 3.4 support has been deprecated. pip 19.1 will be the last one supporting it. Please upgrade your Python as Python 3.4 won't be maintained after March 2019 (cf PEP 429).
Skipping keras as it is not installed.
root@a26-03-06:/data01/yanan/keras# pip uninstall tensorflow
DEPRECATION: Python 3.4 support has been deprecated. pip 19.1 will be the last one supporting it. Please upgrade your Python as Python 3.4 won't be maintained after March 2019 (cf PEP 429).
Skipping tensorflow as it is not installed.
我在pip列表中找不到它们。当我导入它们时,它们就存在了。那么我如何卸载它们呢


python的版本是2.7。

正如我在上面的评论中提到的,您的Pip包管理器与python3安装相链接,您需要在Python2.7中进行更改,一种方法是使用


python-m pip unistall keras tensorflow
这在windows中有效,如果不起作用,应该在Linux中尝试单独卸载它们,而不是一条语句。

您的pip控制着python3.4软件包,而您的keras和tensorflow安装在python2.7中