ERROR: Could not find a version that satisfies the requirement tensorflow (from versions: none)
ERROR: No matching distribution found for tensorflow
1.打开Anaconda Prompt:
创建新的环境:conda create -n tensorflow python=3....(这里我推荐使用3.7)无论你之前安装的python是哪个版本这里都可以写3.7,回车,再输入y,回车。
conda create -n tensorflow python=3.7
2.激活已创建的环境:
conda activate tensorflow
3.安装tensorflow:
pip install tensorflow
4.解决报错。这时我的电脑出现了报错:
ERROR: Could not find a version that satisfies the requirement tensorflow (from versions: none)
ERROR: No matching distribution found for tensorflow
这个问题可能出现在环境不兼容。不要慌,输入以下代码中的任意一个:
pip3 install numpy -i https://pypi.tuna.tsinghua.edu.cn/simple
pip3 install numpy -i https://pypi.mirrors.ustc.edu.cn/simple
pip3 install numpy -i http://pypi.douban.com/simple/
pip3 install numpy -i http://mirrors.aliyun.com/simple/
这个时候你会发现numpy已经下载好了。输入下面这个代码就可以成功下载啦!
pip3 install tensorflow
我是根据阿松爱睡觉老师的这篇文章以及B站视频成功安装这个环境的,之前的pytorch我参照了小土堆老师的视频,很感谢这些科研大佬们的经验分享,使我受益良多,配环境不易,祝大家成功!
https://blog.csdn.net/xks18232047575/article/details/128390137