在命令提示符(cmd)中使用pip安装tensorflow框架
安装之前先检查numpy库的版本是否需要更新
pip install numpy
python -m pip install -U numpy
然后再安装tensorflow
pip install tensorflow
解决办法:
pip install -U --ignore-installed wrapt enum34 simplejson netaddr
然后再继续安装:
pip install tensorflow
检查tensorflow版本信息
pip show tensorflow
或者进入python的交互模式查看:
python
import tensorflow as tf
tf.__version__#查看版本信息
tf.__path__#查看路径