Tensorflow安装过程的一些问题及解决办法
一、安装Anaconda
1.使用清华的源进行下载(比官网下载快):https://mirrors.tuna.tsinghua.edu.cn/anaconda/archive/
安装时注意添加环境变量,可以省去以后自己加变量。
注:安装Anaconda时会再安装一个python,在cmd里运行where python可以看到多个python的位置
运行python --version显示第一环境变量的python版本
二、安装Tensorflow-cpu
使用离线安装的方法更快。在离线安装时依然会自动下载所需的包,此时下载速度很慢,甚至最后超时,我们可以采用清华的镜像服务器。
在C:\Users\你的用户名 里新建pip文件夹,再建pip.ini
例如C:\Users\你的用户名\pip\pip.ini
pip.ini 中写入:
[global]
index-url = https://pypi.tuna.tsinghua.edu.cn/simple
[install]
trusted-host=mirrors.aliyun.com
最后在试一下pip install someting你会发现下载速度就像做了火箭一样。
附Tensorflow的完整安装过程:https://blog.csdn.net/zqxdsy/article/details/89646615