简体   繁体   English

错误:typer 0.3.2 有要求 click<7.2.0,>=7.1.1,但你会点击不兼容的 8.0.3

[英]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

I have requirements.txt file to install python packages我有 requirements.txt 文件来安装 python 包

While I do RUN pip3 install --no-cache-dir -r requirements.txt in Dockerfile I am getting above error当我在 Dockerfile 中RUN pip3 install --no-cache-dir -r requirements.txt时,我遇到了错误

Can anyone explain what it is telling谁能解释它在说什么

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

在此处输入图像描述

Typer is known as FastAPI of CLIs . Typer 被称为 CLI 的FastAPI

Typer stands on the shoulders of a giant. Typer 站在巨人的肩膀上。 Its only internal dependency is Click它唯一的内部依赖是Click

  • While installing fastapi , it's also installing those dependencies as per requirement.在安装fastapi时,它还会根据要求安装这些依赖项。

So to resolve this 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 , you can try either of the following ways:所以要解决这个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 ,你可以尝试以下任一方法:

  1. Try installing a specific click version, pip install click==7.2.0尝试安装特定的click版本, pip install click==7.2.0

OR或者

  1. Upgrade the typer version to 0.4.0 , pip install typer=0.4.0将 typer 版本升级到0.4.0 , pip install typer=0.4.0

You can refer to incompatible click version and typer 0.3.2 has requirement click<7.2.0,>=7.1.1, but you have click 8.0.1你可以参考不兼容的click版本typer 0.3.2有要求click<7.2.0,>=7.1.1,但是你有click 8.0.1

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 错误:tensorboard 2.0.2 要求 setuptools&gt;=41.0.0,但您将拥有不兼容的 setuptools 40.6.2 - ERROR: tensorboard 2.0.2 has requirement setuptools>=41.0.0, but you'll have setuptools 40.6.2 which is incompatible 错误:gevent 1.4.0 要求 greenlet&gt;=0.4.14,但您将拥有不兼容的 greenlet 0.4.13 - ERROR: gevent 1.4.0 has requirement greenlet>=0.4.14, but you'll have greenlet 0.4.13 which is incompatible 错误:pinax-images 4.0.1 要求枕头&gt;=7.1.2,但您将拥有不兼容的枕头 5.0.0 - ERROR:pinax-images 4.0.1 has requirement pillow>=7.1.2, but you'll have pillow 5.0.0 which is incompatible matplotlib 1.3.1 要求 numpy&gt;=1.5,但您将拥有不兼容的 numpy 1.8.0rc1 - matplotlib 1.3.1 has requirement numpy>=1.5, but you'll have numpy 1.8.0rc1 which is incompatible Spacy 2.0.11的要求正则表达式== 2017.4.5,但你有正则表达式2017.11.9是不兼容的 - Spacy 2.0.11 has requirement regex==2017.4.5, but you'll have regex 2017.11.9 which is incompatible networkx 2.1的需求装饰器&gt; = 4.1.0,但是您将拥有不兼容的装饰器4.0.11 - networkx 2.1 has requirement decorator>=4.1.0, but you'll have decorator 4.0.11 which is incompatible mezzanine 4.2.3 有要求 django&lt;1.11,&gt;=1.8,但你会有不兼容的 django 2.0.2 - mezzanine 4.2.3 has requirement django<1.11,>=1.8, but you'll have django 2.0.2 which is incompatible awscli 1.18.34 有要求 botocore==1.15.34,但您将拥有不兼容的 botocore 1.15.49 - awscli 1.18.34 has requirement botocore==1.15.34, but you'll have botocore 1.15.49 which is incompatible Python-Heroku - aiohttp 3.7.3 要求 chardet&lt;4.0,&gt;=2.0,但您将拥有不兼容的 chardet 4.0.0 - Python-Heroku - aiohttp 3.7.3 has requirement chardet<4.0,>=2.0, but you'll have chardet 4.0.0 which is incompatible tensorflow 2.3.0 需要 h5py&lt;2.11.0,&gt;=2.10.0,但您将拥有不兼容的 h5py 3.1.0 - tensorflow 2.3.0 requires h5py<2.11.0,>=2.10.0, but you'll have h5py 3.1.0 which is incompatible
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM