通过annaconda来安装TensorFlow
annaconda安装方式:查看我另外一篇博客【点击跳转】
新建tensorflow环境
因为不同的框架公用的部分工具会存在兼容性问题,所以在annaconda里面,最好新建一个TensorFlow单独的环境:
# tf为环境名称,自定义
# 3.6是指定python版本,根据自己需要设置所需版本号
conda create -n tf python=3.6
切换到TensorFlow环境
conda active tf
tensorflow安装:
使用pip连接清华源进行安装,速度会比较快
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple tensorflow