我有一个私有的pypi,并不断将新的包framework
上传到该注册表。
我想在虚拟机中安装最新的软件包。
使用的命令:
pip install -i https://user:pass@registry framework
输出:
Collecting framework:
... downloads many versions
ERROR: Cannot install framework==0.25.13, framework==0.25.14 and framework==0.26.0 because these package versions have conflicting dependencies.
The conflict is caused by:
framework 0.26.0 depends on toolz<0.12.0 and >=0.11.1
framework 0.25.14 depends on toolz<0.12.0 and >=0.11.1
framework 0.25.13 depends on toolz<0.12.0 and >=0.11.1
To fix this you could try to:
1. loosen the range of package versions you've specified
2. remove package versions to allow pip attempt to solve the dependency conflict
ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/user_guide/#fixing-conflicting-dependencies
我只想下载最新的版本。在pip安装时,我不能硬编码像framework==0.26.0
这样的版本,因为这个命令要在脚本中使用,每次上传新的framework
时我可能需要修改脚本。
pip版本:pip 21.1.2
解决此问题的解决方案是使用--extra-index-url
而不是-i
要使用的命令
pip install --extra-index-url https://user:pass@registry framework