如何在macOS上删除或卸载TensorFlow1.1或1.8

时间:2018-06-22 12:24:56

标签: python macos tensorflow pip uninstall

我尝试使用tensorflow来运行代码,但是tensorflow的版本是1.1,而我的代码出了点问题,只是因为版本太低。所以我决定更新tensorflow。 我使用conda命令:

pip install --upgrade --ignore-installed tensorflow

然后我得到了tensorflow1.8.0,但是我发现了一个问题。  “我们尚未在macOS上提供Tensorflow 1.8.0软件包。”-https://github.com/ContinuumIO/anaconda-issues/issues/9294

所以我参考tensorflow官方网站,并使用此命令安装tensorflow1.6.0:

pip install -i https://pypi.tuna.tsinghua.edu.cn/simple --ignore-installed --upgrade \
 https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-1.6.0-py3-none-any.whl

最后,我在conda列表中获得了3个不同版本的tensorflow,如下所示: enter image description here

但是我的代码运行正常,我打印了tensorflow版本,得到了输出:

import tensorflow as tf  
print(tf.__version__)
1.6.0

所以,我想删除或卸载tensorflow1.1或1.8版本,下一步该怎么做?

0 个答案:

没有答案