pip安装:尝试从私有pypi安装同一软件包的多个版本

2024-05-23 23:45:55 发布

您现在位置:Python中文网/ 问答频道 /正文

我有一个私有pypi,并不断将新包framework上传到该注册表

我想在virtualenv中安装最新的软件包

使用的命令:

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


Tags: installpipandtohttps命令版本package