【问题标题】:ERROR: typer 0.3.2 has requirement click<7.2.0,>=7.1.1, but you'll have click 8.0.3 which is incompatible错误:typer 0.3.2 有要求 click<7.2.0,>=7.1.1,但你会点击不兼容的 8.0.3
【发布时间】:2021-12-04 19:54:47
【问题描述】:

我有 requirements.txt 文件来安装 python 包

当我在 Dockerfile 中执行 RUN pip3 install --no-cache-dir -r requirements.txt 时,我遇到了错误

谁能解释一下它在说什么

fastapi==0.68.2
uvicorn==0.15.0
nltk==3.6.2
pydantic>=1.2.0,<2.0.0
requests==2.26.0
dill==0.3.4
numpy==1.19.5
spacy==3.1.0
torch==1.9.0
transformers==4.11.3
sentence-splitter==1.4
gunicorn==20.0.4

【问题讨论】:

    标签: python azure-devops dockerfile azure-pipelines


    【解决方案1】:

    Typer 被称为FastAPI of CLIs

    Typer 站在巨人的肩膀上。它唯一的内部依赖是Click

    • 在安装fastapi 的同时,它还会根据要求安装这些依赖项。

    所以要解决这个ERROR: typer 0.3.2 has requirement click&lt;7.2.0,&gt;=7.1.1, but you'll have click 8.0.3 which is incompatible,你可以尝试以下任一方法:

    1. 尝试安装特定的点击版本,pip install click==7.2.0

    1. 将打字机版本升级到0.4.0pip install typer=0.4.0

    您可以参考incompatible click versiontyper 0.3.2 has requirement click<7.2.0,>=7.1.1, but you have click 8.0.1

    【讨论】:

      猜你喜欢
      • 2023-03-27
      • 1970-01-01
      • 2020-11-10
      • 1970-01-01
      • 2021-12-29
      • 2023-03-07
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多