(1)查看tensorflow版本:
普遍方法:
python
import tensorflow as tf
tf.__version__
我显示:AttributeError: module 'tensorflow' has no attribute '__version__'
因此使用:pip show tensorflow 成功
(2)卸载原先tensorflow
pip uninstall tensorflow 或 pip uninstall tensorflow-gpu
(3)安装tensorflow,使用镜像
conda create --name tensorflow python=3.6
activate tensorflow
查看 环境:conda info --envs
pip install -i https://pypi.mirrors.ustc.edu.cn/simple/ tensorflow-gpu==1.5.0 (清华镜像安装)