Python中使用pip安装一些库时出现ERROR: Could not find a version that satisfies the requirement tensorflow (from

标题Python中使用pip安装一些库时出现ERROR: Could not find a version that satisfies the requirement tensorflow (from versions: none)

有时我们使用pip安装需要使用的某些包时会报如下错误:
Python中使用pip安装一些库时出现ERROR: Could not find a version that satisfies the requirement tensorflow (from
ERROR: No matching distribution found for tensorflow的情况
这可能是因为网络的问题,这时我们使用国内的镜像源来加速
输入命令:python -m pip install tensorflow(如果你安装的是别的库,请输入别的库名) -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com
这时就安装成功了,会出现如下图像:
Python中使用pip安装一些库时出现ERROR: Could not find a version that satisfies the requirement tensorflow (from
Python中使用pip安装一些库时出现ERROR: Could not find a version that satisfies the requirement tensorflow (from
这就算是安装成功了,有问题欢迎留言。