ai-forever / ghost

A new one shot face swap approach for image and video domains
Apache License 2.0
1.25k stars 265 forks source link

Unable to install: dependency conflict #10

Open bmc84 opened 2 years ago

bmc84 commented 2 years ago

Hi!

Firstly, thank you for sharing this project! It looks amazing.

Having some trouble with pip install -r requirements.txt

_ERROR: Cannot install -r requirements.txt (line 10), -r requirements.txt (line 12) and requests==2.25.1 because these package versions have conflicting dependencies.

The conflict is caused by: The user requested requests==2.25.1 insightface 0.2.1 depends on requests mxnet-cu101mkl 1.5.0 depends on requests<2.19.0 and >=2.18.4

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_

Do you have any suggestion on how to fix this conflict? Have the wrong version numbers been added in requirements.txt, perhaps?

Looking forward to a solution. Thank you again!

thepirat000 commented 2 years ago

I've solved that by removing the version of requests from requirements.txt:

instead of

https://github.com/sberbank-ai/sber-swap/blob/1140e085e165ed14e1098d81b7abd63feafedecf/requirements.txt#L12

Just

requests