AllenNLP 服务器:pip 正在查看每个包的多个版本

问题描述

在使用 Python 3.6.9 的 Conda 环境中,我安装了 AllenNLP 9.2.0。我尝试按照 https://github.com/allenai/allennlp-server 中的说明通过运行 pip install --editable .

来安装 AllenNLP Server

然而,the installation procedure never finished as the compatibility checks with several modules,例如pip is looking at multiple versions of tqdm to determine which version is compatible with other requirements. This Could take a while. Collecting tqdm>=4.19

有人知道这里发生了什么吗?我应该在 AllenNLP 服务器中为 steup.py 添加更多限制吗?但是,该文件中包含任何代码

非常感谢您的帮助。

解决方法

我刚刚使用 AllenNLP 2.0.1(最新版本)进行了尝试,虽然需要很长时间,但它最终确实解决了软件包问题。

也就是说,我会推荐两件事:

  1. 改用 Python 3.8。
  2. 如果仍然不起作用,请在要求中严格指定 tqdm 的版本。我的版本自动选择了 tqdm==4.56.2,只是或参考。