首页 > 解决方案 > 如何安装特定版本的click?

问题描述

我在安装过程中收到以下错误。

ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
gitsome 0.8.4 requires click<7.0,>=5.1, but you have click 8.0.1 which is incompatible.

我试过了:

pip install click<7.0,>=5.1

这导致

ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
flask 2.0.1 requires click>=7.1.2, but you have click 6.7 which is incompatible.

标签: python-3.xinstallation

解决方案


您有两个不同的错误 - 存在一个您必须解决的版本冲突。gitsome 需要一个旧的点击,而烧瓶需要一个新的点击。唯一的出路是找出哪个包有 gitsome 作为依赖项并尝试更新那个 - 或者只是将 gitsome 更新到接受更新的“点击”的版本。


推荐阅读