Tensorflow安装笔记
生活随笔
收集整理的這篇文章主要介紹了
Tensorflow安装笔记
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
(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 (清華鏡像安裝)
總結
以上是生活随笔為你收集整理的Tensorflow安装笔记的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: {'张三丰': 101, '无忌': 1
- 下一篇: Tensorflow安装问题解决(Ano