anaconda :
更新所有库:
conda update --all
tensorflow:
查看版本:
import tensorflow as tf
tf.__version__
更新:
pip3 install --upgrade tensorflow
安装可能出现的问题
Cannot remove entries from nonexistent file
如果在安装 TensorFlow 的时候出现类似 Cannot remove entries from nonexistent file c:\users\li\anaconda3\lib\site-packages\easy-install.pth
的错误,那么可以参考Cannot remove entries from nonexistent #622 和 osx 10.11 installation issues #135,里面说了好多种解决办法,我在这里介绍一种方法:在 pip3 install --upgrade tensorflow-gpu
之前先执行pip install --upgrade --ignore-installed setuptools
。