1、TensorFlow安装
CPU版本安装:pip install tensorflow
GPU版本安装:pip install tensorflow-gpu
卸载:
CPU版本卸载:pip uninstall tensorflow
GPU版本卸载:pip uninstall tensorflow-gpu
2、pip show tensorflow 不显示版本解决方法:
在超级用户权限下使用:pip install --upgrade tensorflow
出现下列界面:
然后pip show tensorflow,出现如下界面:
3. 环境清理:
注意:如果你之前在计算机上装过TensorFlow,那么你需要先卸载掉之前的TensorFlow和protobuf,具体如下:
$ pip uninstall tensorflow
$ pip uninstall protobuf