python3.8版本安装tensorflow

1、打开anaconda prompt
2、输入安装命令:

python -m pip install -U pip

3、创建tensorflow环境:

conda create --name tensorflow python=3.8

中间出现的Proceed([y]/n)?
按y回车
4、激活tensorflow:

activate tensorflow

5、这一步做了很久,用了很多镜像,清华的、阿里云的都不成功,最后试了一下豆瓣镜像的镜像成功了,如下:

pip --default-timeout=100 install tensorflow -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com

完成。

猜你喜欢

转载自blog.csdn.net/weixin_43737995/article/details/128486130