安装Anaconda
安装好Anaconda以后,打开Anaconda Navigator
添加镜像网址
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 create -n tensorflow python==3.6.5
在目录中创建一个文件夹和文件
pip.ini
[global] timeout = 6000 index-url = https://pypi.tuna.tsinghua.edu.cn/simple trusted-host = pypi.tuna.tsinghua.edu.cn
安装TensorFlow
pip install tensorflow==1.13.1
步骤:
安装完成后,可能会遇到:
matplotlib 安装2.2.2 numpy 安装1.16.2 Pillow 安装5.0.0
成功运行: