目录
[INFO: pip is looking at multiple versions xxxx,过了很久后报错](#INFO: pip is looking at multiple versions xxxx,过了很久后报错)
切换主题

安装插件
方法1

方法2

搭建Python开发环境
装Python插件

配置解释器
假设解释器已经通过Anaconda建好,只需要在VS Code中关联。
打开项目

打开终端

INFO: pip is looking at multiple versions xxxx,过了很久后报错
新版pip有个冲突检测机制,有时候包依赖过于复杂,导致陷入无限循环而报错。
方法1
可以考虑用pip的旧解析器:
pip install -r xxx --use-deprecated=legacy-resolver
装完之后会提示:
ERROR: pip's legacy dependency resolver does not consider dependency conflicts when selecting packages. This behaviour is the source of the following dependency conflicts.
xxx requires xxx
......
意思就是检测到一些依赖冲突,这个时候按提示重装对应的包
方法2
更加合理的方案应该是在requirements.txt中固定包版本
如果不知道每个包的具体版本,可以一个个包先装一次,然后生成requirements.txt