话不多讲,直接在Conda中开干:
# 添加新镜像源
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
# 设置搜索时显示通道地址
conda config --set show_channel_urls yes
# 更新conda
conda update conda
# 创建tensorflow的虚拟环境
conda create -n tensorflow python=3.6
# 激活虚拟环境
conda activate tensorflow
# 安装CPU版本的Tensorflow
pip install --upgrade --pre tensorflow -i https://pypi.tuna.tsinghua.edu.cn/simple