赞
踩
1、安装anaconda
https://www.anaconda.com/products/individual#download-section
记得勾选添加环境变量
检测anaconda是否安装成功,在终端输入conda list
2、如果是cpu安装tensorflow
打开终端,更新pip
python -m pip install --upgrade pip
安装tensorflow2.0.0版本,使用清华镜像源
pip install tensorflow==2.0.0 -i https://pypi.tuna.tsinghua.edu.cn/simple
这样就安装到了base这个根环境里面,spyder就可以使用tensorflow了
如果需要装到虚拟环境里面,先创建虚拟环境tf,可以自己修改
conda create -n tf python=3.7
激活环境
activate tf
安装tensorflow2.0.0版本,使用清华镜像源
pip install tensorflow=&#
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。