使用pip安装包时提示报错如下:
ERROR: Could not find a version that satisfies the requirement <package> (from versions: none)
ERROR: No matching distribution found for <package>
大多数是网络问题,替换使用国内的镜像来源加速即可。
打开cmd
输入
pip install <package> -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com
按回车执行命令后,安装成功。
例如:
文章出处登录后可见!
已经登录?立即刷新