一.先安装anaconda,详见:
点击此处即可转入链接,很详细的教程
二.打开anaconda prompt如图所示:
三.请输入命令:conda create -n tensorflow python=3.8
conda create -n tensorflow python=3.8
引用一下:conda 是指调用 conda 包,create 是创建的意思,-n 是指后面的名字是屋子的名字, tensorflow是屋子的名字(可以更改成自己喜欢的),python=3.8 是指创建的屋子,是 python3.8 版本。
四.输入y,等待安装,安装完毕后请输入命令:conda activate tensorflow
conda activate tensorflow
如图所示:
五.安装tensorflow,请输入命令:
pip install tensorflow==2.3.1
或者
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple tensorflow==2.3.1
经过等待后:
六.输入python进行import导包检测即可