Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

安装虚拟环境venv报错 #47

Open
270287182 opened this issue Feb 3, 2024 · 1 comment
Open

安装虚拟环境venv报错 #47

270287182 opened this issue Feb 3, 2024 · 1 comment

Comments

@270287182
Copy link

gradio和fastapi无法安装,似乎是版本更新导致的。
发生时间:2024年2月3日
对应版本:#44(支持ChatGLM3,版本升级)
操作系统:windows 10 22H2
复现步骤:运行setup_venv.bat
报错信息:
`ERROR: Cannot install -r requirements.txt (line 12) and -r requirements.txt (line 6) because these package versions have conflicting dependencies.

The conflict is caused by:
gradio 4.8.0 depends on pydantic>=2.0
fastapi 0.85.2 depends on pydantic!=1.7, !=1.7.1, !=1.7.2, !=1.7.3, !=1.8, !=1.8.1, <2.0.0 and >=1.6.2

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/topics/dependency-resolution/#dealing-with-dependency-conflicts`
报错截图:
image

补充说明:彩蛋信息:gradio要pydantic大于2.0,fastapi要pydantic小于2.0 😂

@ypwhs
Copy link
Owner

ypwhs commented Apr 7, 2024

已更新 requirements.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants