Tensorflow2.0-cpu版安装
安装tensorflow之前得安装python3.5-3.7、anaconda2.0以上、pycharm进行辅助。Python3.6、anaconda、pycharm直接进入官网下载,可能网页加载有点慢。Pycharm个人用直接下载community版的就够了。
1.进入anaconda prompt
conda create -n 你的tensorflow名字 python=版本号
conda create -n tf_me python=3.6
2.激活tensorflow
activate tf_me
3.安装tensorflow2.0
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple tensorflow
4.安装notebook
pip installl -i https://pypi.tuna.tsinghua.edu.cn/simple notebook
5.进入jupyter
jupyter notebook
6.测试你的tensorflow是否安装成功
import tensorflow as tf
print(tf.__version__)