OPHoperHPO / image-background-remove-tool

✂️ Automated high-quality background removal framework for an image using neural networks. ✂️
https://carve.photos
Apache License 2.0
1.39k stars 272 forks source link

ERROR: Cannot install `carvekit==4.0.1` #136

Closed dzianisv closed 1 year ago

dzianisv commented 1 year ago
pip install carvekit     
Collecting carvekit
  Using cached carvekit-4.1.0-py3-none-any.whl (76 kB)
Collecting requests~=2.27.1 (from carvekit)
  Using cached requests-2.27.1-py2.py3-none-any.whl (63 kB)
INFO: pip is looking at multiple versions of carvekit to determine which version is compatible with other requirements. This could take a while.
Collecting carvekit
  Using cached carvekit-4.0.8-py3-none-any.whl (57 kB)
  Using cached carvekit-4.0.7-py3-none-any.whl (57 kB)
  Using cached carvekit-4.0.6-py3-none-any.whl (57 kB)
  Using cached carvekit-4.0.5-py3-none-any.whl (57 kB)
  Using cached carvekit-4.0.4-py3-none-any.whl (57 kB)
  Using cached carvekit-4.0.3-py3-none-any.whl (57 kB)
  Using cached carvekit-4.0.2-py3-none-any.whl (57 kB)
INFO: pip is still looking at multiple versions of carvekit to determine which version is compatible with other requirements. This could take a while.
  Using cached carvekit-4.0.1-py3-none-any.whl (56 kB)
ERROR: Cannot install carvekit==4.0.1, carvekit==4.0.2, carvekit==4.0.3, carvekit==4.0.4, carvekit==4.0.5, carvekit==4.0.6, carvekit==4.0.7, carvekit==4.0.8 and carvekit==4.1.0 because these package versions have conflicting dependencies.

The conflict is caused by:
    carvekit 4.1.0 depends on torch~=1.11.0
    carvekit 4.0.8 depends on torch~=1.11.0
    carvekit 4.0.7 depends on torch~=1.11.0
    carvekit 4.0.6 depends on torch~=1.11.0
    carvekit 4.0.5 depends on torch~=1.11.0
    carvekit 4.0.4 depends on torch~=1.11.0
    carvekit 4.0.3 depends on torch~=1.11.0
    carvekit 4.0.2 depends on torch~=1.11.0
    carvekit 4.0.1 depends on torch~=1.11.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
$ python3 --version
Python 3.11.4
$  pip3 --version
pip 23.1.2 from /Users/engineer/.carvekit/lib/python3.11/site-packages/pip (python 3.11)
$  uname -a
Darwin mybook13.local 21.6.0 Darwin Kernel Version 21.6.0: Thu Mar  9 20:08:59 PST 2023; root:xnu-8020.240.18.700.8~1/RELEASE_X86_64 x86_64

The same issue is reproducible inside the docker alpine:latest container

dzianisv commented 1 year ago

Fixed by switching to python3.9