1.安装python3.8 python3.8.6下载网址
2.安装Anaconda3 Anaconda3官网下载地址
2.1根据自己的电脑系统选择对应的安装包下载
2.2点击下载
2.3安装
3. Tensorflow安装
3.1点击开始,选择Anaconda prompt,点击打开
3.2 输入清华镜像源
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
3.3建立python3.8的环境名为tensorflow
conda create -n tensorflow pip python=3.8
3.4激活环境
activate tensorflow
这是我们建好的tensorflow的环境
3.5 在建好的环境里安装tensorflow
pip install --upgrade --ignore-installed tensorflow
3.6最后我们可能会发现spyder里面导入tensorflow依然会显示
这时我们可以在Anaconda的tensorflow的环境里选择not installed
然后在搜索框里搜索Spyder和ipython进行apply,这边我已经apply过了,所以在installed里显示
最后的最后,tensorflow的安装就大功告成啦!