一、遇到错误
Python需要pip多个资源,为了图方便写在了一个txt里面,结果导入的时候入报错这个错误
ERROR: Could not find a version that satisfies the requirement django-import-export (from versions: none) ERROR: No matching distribution found for django-import-export
二、解决错误
阅读参考这篇文章https://cloud.tencent.com/developer/article/2409443文章里提到了三个原因:
- 库版本不存在: 请求的版本号在PyPI上没有对应的发行版。
- Python兼容性: 某些库版本仅支持特定的Python版本。
- 网络限制: 防火墙或代理设置阻止了pip的正常访问PyPI。
猜测是防火墙问题,于是把防火墙关了一下
正解!!!