pip安装报错:ERROR: Could not find a version that satisfies the requirement pyjwt (from versions: none)
【报错信息】
ERROR: Could not find a version that satisfies the requirement pyjwt (from versions: none)
ERROR: No matching distribution found for pyjwt
【解决方法】
1、按照提示所示是其中一个原因是pip版本过低,需要更新pip:
- python -m pip install --upgrade pip
- 仍然报错
2、考虑是python国内网络的问题,用国内的镜像源来加速。
- pip install 包名 -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com
- 这个是豆瓣源;--trusted-host pypi.douban.com 这是为了获得ssl证书的认证,要不然会报错
🌰
pip install pyjwt -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com