Fanghua-Yu / SUPIR

SUPIR aims at developing Practical Algorithms for Photo-Realistic Image Restoration In the Wild

Home Page:http://supir.xpixel.group/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

multiple versions of gradio

shaobeichen opened this issue · comments

INFO: pip is looking at multiple versions of gradio to determine which version is compatible with other requirements. This could take a while.
ERROR: Cannot install -r requirements.txt (line 1) and -r requirements.txt (line 2) because these package versions have conflicting dependencies.

The conflict is caused by:
fastapi 0.95.1 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
gradio 4.16.0 depends on pydantic>=2.0

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

I have temporarily lowered the gradient to 3.50.0 and the gradient_client to 0.6.1, and there are no installation errors

but run gradio_demo.py appearing

File "gradio_demo.py", line 4, in
from gradio_imageslider import ImageSlider
File "/usr/local/envs/SUPIR/lib/python3.8/site-packages/gradio_imageslider/init.py", line 1, in
from .imageslider import ImageSlider
File "/usr/local/envs/SUPIR/lib/python3.8/site-packages/gradio_imageslider/imageslider.py", line 16, in
from gradio.events import Events
ImportError: cannot import name 'Events' from 'gradio.events' (/usr/local/envs/SUPIR/lib/python3.8/site-packages/gradio/events.py)

I try upgrad fastapi to 0.110.0, but triton need upgrad to 2.2.0

The conflict is caused by:
The user requested triton==2.1.0
torch 2.2.1 depends on triton==2.2.0; platform_system == "Linux" and platform_machine == "x86_64" and python_version < "3.12"
The user requested triton==2.1.0
torch 2.2.0 depends on triton==2.2.0; platform_system == "Linux" and platform_machine == "x86_64"

then, pydantic version need adjust , I'm tired

Same shit for me its annyoing