代码之家  ›  专栏  ›  技术社区  ›  yanachen

无法卸载TensorFlow和Keras

  •  0
  • yanachen  · 技术社区  · 6 年前

    当我输入命令时

    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。

    1 回复  |  直到 6 年前
        1
  •  0
  •   anand_v.singh    6 年前

    正如我在上面的注释中提到的,您的PIP包管理器与python3安装相链接,您需要在python 2.7中进行更改,一种方法是使用

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