安装d2l出现错误:“ERROR: Could not find a version that satisfies the requirement d2l (from versions: none)”

最近想跟着沐神学习一下深度学习,所以开始跟着敲代码。

安装d2l出现以下错误:
安装d2l出现错误:“ERROR: Could not find a version that satisfies the requirement d2l (from versions: none)”_第1张图片
升级pip版本也无法解决。

后来发现一个解决方法:pip install d2l -i http://pypi.douban.com/simple --trusted-host pypi.douban.com

可是安装到一半时又提示错误:
安装d2l出现错误:“ERROR: Could not find a version that satisfies the requirement d2l (from versions: none)”_第2张图片

按照提示,加入参数**–user**:pip install d2l -i http://pypi.douban.com/simple --trusted-host pypi.douban.com --user

成功安装。
安装d2l出现错误:“ERROR: Could not find a version that satisfies the requirement d2l (from versions: none)”_第3张图片

你可能感兴趣的:(常见error汇总,python,开发语言)