va1shn9v / PromptIR

PromptIR: Prompting for All-in-One Blind Image Restoration [NeurIPS 2023]
https://arxiv.org/abs/2306.13090
Other
297 stars 22 forks source link

Cannot install PromptIR because Pip dependencies error. #7

Closed chanwitkepha closed 11 months ago

chanwitkepha commented 11 months ago

Ubuntu 18.04.6 LTS, Python 3.7.5, Anaconda 2023-07-01 (conda 23.5.2)

conda --version
conda 23.5.2

I try to install according to https://github.com/va1shn9v/PromptIR/blob/main/INSTALL.md

When I use command conda env create -f env.yml

It shows something like this.

Collecting tifffile==2023.1.23.1
  Using cached tifffile-2023.1.23.1-py3-none-any.whl (214 kB)
Collecting timm==0.6.12
  Using cached timm-0.6.12-py3-none-any.whl (549 kB)
Requirement already satisfied: torch==1.8.1 in /ssd-disk2/home/surapan/anaconda3/envs/promptir/lib/python3.8/site-packages (from -r /ssd-disk2/home/surapan/PromptIR/condaenv.r0b5wppv.requirements.txt (line 108)) (1.8.1)
Collecting torchmetrics==0.11.4
  Using cached torchmetrics-0.11.4-py3-none-any.whl (519 kB)
Collecting torchsummary==1.5.1
  Using cached torchsummary-1.5.1-py3-none-any.whl (2.8 kB)
Collecting triton==2.0.0
  Using cached triton-2.0.0-1-cp38-cp38-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (63.2 MB)
Collecting tsnecuda==3.0.1
  Using cached tsnecuda-3.0.1-py3-none-any.whl (53.2 MB)
Collecting typing-extensions==4.5.0
  Using cached typing_extensions-4.5.0-py3-none-any.whl (27 kB)
Collecting ujson==5.7.0
  Using cached ujson-5.7.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (52 kB)
Collecting urllib3==1.26.14
  Using cached urllib3-1.26.14-py2.py3-none-any.whl (140 kB)
Collecting uvicorn==0.21.1
  Using cached uvicorn-0.21.1-py3-none-any.whl (57 kB)
Collecting uvloop==0.17.0
  Using cached uvloop-0.17.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.6 MB)
Collecting wandb==0.13.9
  Using cached wandb-0.13.9-py2.py3-none-any.whl (2.0 MB)

But finally, It shows error like this.

Pip subprocess error:
ERROR: Could not find a version that satisfies the requirement warmup-scheduler==0.3.2
ERROR: No matching distribution found for warmup-scheduler==0.3.2
                                                                                                                                                         failed

CondaEnvException: Pip failed

Please help or suggest how to solve this problem, Thank you.

chensming commented 11 months ago

hi bro, I met the same question as yours. And I figure it out by

pip install warmup-scheduler==0.3

Hope this may help.

chanwitkepha commented 11 months ago

I try to fix it.

surapan@devteam-pc:~/PromptIR$ conda activate promptir
(promptir) surapan@devteam-pc:~/PromptIR$ pip install warmup-scheduler==0.3
Requirement already satisfied: warmup-scheduler==0.3 in /ssd-disk2/home/surapan/anaconda3/envs/promptir/lib/python3.8/site-packages (0.3)
(promptir) surapan@devteam-pc:~/PromptIR$ pip install warmup-scheduler==0.3.2
ERROR: Could not find a version that satisfies the requirement warmup-scheduler==0.3.2
ERROR: No matching distribution found for warmup-scheduler==0.3.2
(promptir) surapan@devteam-pc:~/PromptIR$ pip install warmup-scheduler==0.3.1
ERROR: Could not find a version that satisfies the requirement warmup-scheduler==0.3.1
ERROR: No matching distribution found for warmup-scheduler==0.3.1
(promptir) surapan@devteam-pc:~/PromptIR$

Then I install warmup-scheduler==0.3 already

(promptir) surapan@devteam-pc:~/PromptIR$ pip install warmup-scheduler==0.3
Requirement already satisfied: warmup-scheduler==0.3 in /ssd-disk2/home/surapan/anaconda3/envs/promptir/lib/python3.8/site-packages (0.3)
(promptir) surapan@devteam-pc:~/PromptIR$

Then I edit warmup-scheduler in env.yml

vi env.yml - warmup-scheduler==0.3 Then I run conda env update -f env.yml again

(promptir) surapan@devteam-pc:~/PromptIR$ conda env update -f env.yml It still have error.

INFO: pip is looking at multiple versions of kiwisolver to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of jinja2 to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of itsdangerous to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of inquirer to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of imageio to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of idna to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of huggingface-hub to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of httpx to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of httptools to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of httpcore to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of hjson to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of h11 to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of gitpython to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of gitdb to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of future to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of fsspec to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of frozenlist to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of fonttools to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of filelock to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of fastapi to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of email-validator to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of einops to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of docker-pycreds to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of dnspython to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of deepspeed to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of deepdiff to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of dateutils to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of dataclasses to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of cycler to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of croniter to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of contourpy to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of cmake to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of click to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of charset-normalizer to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of blessed to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of beautifulsoup4 to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of attrs to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of async-timeout to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of arrow to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of appdirs to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of anyio to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of aiosignal to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of aiohttp to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of addict to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of <Python from Requires-Python> to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of accelerate to determine which version is compatible with other requirements. This could take a while.

The conflict is caused by:
    The user requested torch==1.8.1
    accelerate 0.18.0 depends on torch>=1.4.0
    deepspeed 0.8.3 depends on torch
    lightning 2.0.1 depends on torch<4.0 and >=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

Pip subprocess error:
ERROR: Cannot install -r /ssd-disk2/home/surapan/PromptIR/condaenv.fdvdl_hb.requirements.txt (line 1), -r /ssd-disk2/home/surapan/PromptIR/condaenv.fdvdl_hb.requirements.txt (line 21), -r /ssd-disk2/home/surapan/PromptIR/condaenv.fdvdl_hb.requirements.txt (line 46) and torch==1.8.1 because these package versions have conflicting dependencies.
ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/user_guide/#fixing-conflicting-dependencies
                                                                                                                                                          failed

CondaEnvException: Pip failed
va1shn9v commented 11 months ago

Hello,

I think you can run the install of the env first by removing warmup-scheduler , then after the complete install finish. Then try to install warmup-scheduler.

chanwitkepha commented 11 months ago

Hello,

I think you can run the install of the env first by removing warmup-scheduler , then after the complete install finish. Then try to install warmup-scheduler.

Hi, I try again on my machine (my username).

(base) chanwit@devteam-pc:~$ git clone https://github.com/va1shn9v/PromptIR.git
Cloning into 'PromptIR'...
remote: Enumerating objects: 107, done.
remote: Counting objects: 100% (107/107), done.
remote: Compressing objects: 100% (74/74), done.
Receiving objects: 100% (107/107), 1.37 MiB | 2.24 MiB/s, done.
remote: Total 107 (delta 41), reused 70 (delta 19), pack-reused 0
Resolving deltas: 100% (41/41), done.
(base) chanwit@devteam-pc:~$ cd PromptIR
(base) chanwit@devteam-pc:~/PromptIR$
(base) chanwit@devteam-pc:~/PromptIR$ python --version
Python 3.11.3
(base) chanwit@devteam-pc:~/PromptIR$ pip --version
pip 23.1.2 from /home/chanwit/anaconda3/lib/python3.11/site-packages/pip (python 3.11)
(base) chanwit@devteam-pc:~/PromptIR$

Then I edit file env.yml. vi env.yml

At line 241 I remove - warmup-scheduler==0.3.2

Then I use command conda env create -f env.yml

It still has error. result is below.

Collecting package metadata (repodata.json): done
Solving environment: done

Downloading and Extracting Packages

Preparing transaction: done
Verifying transaction: done
Executing transaction: | By downloading and using the CUDA Toolkit conda packages, you accept the terms and conditions of the CUDA End User License Agreement (EULA): https://docs.nvidia.com/cuda/eula/index.html
                                                                                                                                                          \

    Installed package of scikit-learn can be accelerated using scikit-learn-intelex.
    More details are available here: https://intel.github.io/scikit-learn-intelex

    For example:

        $ conda install scikit-learn-intelex
        $ python -m sklearnex my_application.py

                                                                                                                                                          done
Installing pip dependencies: - Ran pip subprocess with arguments:
['/home/chanwit/anaconda3/envs/promptir/bin/python', '-m', 'pip', 'install', '-U', '-r', '/ssd-disk2/home/chanwit/PromptIR/condaenv.k079dmf2.requirements.txt', '--exists-action=b']
Pip subprocess output:
Collecting accelerate==0.18.0
  Downloading accelerate-0.18.0-py3-none-any.whl (215 kB)
Collecting addict==2.4.0
  Downloading addict-2.4.0-py3-none-any.whl (3.8 kB)
Collecting aiohttp==3.8.4
  Downloading aiohttp-3.8.4-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.0 MB)
Collecting aiosignal==1.3.1
  Downloading aiosignal-1.3.1-py3-none-any.whl (7.6 kB)
Collecting anyio==3.6.2
  Using cached anyio-3.6.2-py3-none-any.whl (80 kB)
Collecting appdirs==1.4.4
  Using cached appdirs-1.4.4-py2.py3-none-any.whl (9.6 kB)
Collecting arrow==1.2.3
  Downloading arrow-1.2.3-py3-none-any.whl (66 kB)
Collecting async-timeout==4.0.2
  Downloading async_timeout-4.0.2-py3-none-any.whl (5.8 kB)
Collecting attrs==22.2.0
  Downloading attrs-22.2.0-py3-none-any.whl (60 kB)
Collecting beautifulsoup4==4.12.1
  Downloading beautifulsoup4-4.12.1-py3-none-any.whl (142 kB)
Collecting blessed==1.20.0
  Downloading blessed-1.20.0-py2.py3-none-any.whl (58 kB)
Collecting charset-normalizer==3.0.1
  Downloading charset_normalizer-3.0.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (195 kB)
Collecting click==8.1.3
  Downloading click-8.1.3-py3-none-any.whl (96 kB)
Collecting cmake==3.26.1
  Downloading cmake-3.26.1-py2.py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (24.0 MB)
Collecting contourpy==1.0.7
  Downloading contourpy-1.0.7-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (300 kB)
Collecting croniter==1.3.8
  Downloading croniter-1.3.8-py2.py3-none-any.whl (18 kB)
Collecting cycler==0.11.0
  Downloading cycler-0.11.0-py3-none-any.whl (6.4 kB)
Collecting dataclasses==0.6
  Downloading dataclasses-0.6-py3-none-any.whl (14 kB)
Collecting dateutils==0.6.12
  Downloading dateutils-0.6.12-py2.py3-none-any.whl (5.7 kB)
Collecting deepdiff==6.3.0
  Downloading deepdiff-6.3.0-py3-none-any.whl (69 kB)
Collecting deepspeed==0.8.3
  Downloading deepspeed-0.8.3.tar.gz (765 kB)
Collecting dnspython==2.3.0
  Downloading dnspython-2.3.0-py3-none-any.whl (283 kB)
Collecting docker-pycreds==0.4.0
  Downloading docker_pycreds-0.4.0-py2.py3-none-any.whl (9.0 kB)
Collecting einops==0.6.0
  Downloading einops-0.6.0-py3-none-any.whl (41 kB)
Collecting email-validator==1.3.1
  Downloading email_validator-1.3.1-py2.py3-none-any.whl (22 kB)
Collecting fastapi==0.88.0
  Downloading fastapi-0.88.0-py3-none-any.whl (55 kB)
Collecting filelock==3.9.0
  Using cached filelock-3.9.0-py3-none-any.whl (9.7 kB)
Collecting fonttools==4.38.0
  Downloading fonttools-4.38.0-py3-none-any.whl (965 kB)
Collecting frozenlist==1.3.3
  Downloading frozenlist-1.3.3-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (161 kB)
Collecting fsspec==2023.3.0
  Downloading fsspec-2023.3.0-py3-none-any.whl (145 kB)
Collecting future==0.18.3
  Using cached future-0.18.3.tar.gz (840 kB)
Collecting gitdb==4.0.10
  Downloading gitdb-4.0.10-py3-none-any.whl (62 kB)
Collecting gitpython==3.1.30
  Downloading GitPython-3.1.30-py3-none-any.whl (184 kB)
Collecting h11==0.14.0
  Using cached h11-0.14.0-py3-none-any.whl (58 kB)
Collecting hjson==3.1.0
  Downloading hjson-3.1.0-py3-none-any.whl (54 kB)
Collecting httpcore==0.16.3
  Using cached httpcore-0.16.3-py3-none-any.whl (69 kB)
Collecting httptools==0.5.0
  Downloading httptools-0.5.0-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (427 kB)
Collecting httpx==0.23.3
  Using cached httpx-0.23.3-py3-none-any.whl (71 kB)
Collecting huggingface-hub==0.12.0
  Using cached huggingface_hub-0.12.0-py3-none-any.whl (190 kB)
Collecting idna==3.4
  Using cached idna-3.4-py3-none-any.whl (61 kB)
Collecting imageio==2.25.0
  Downloading imageio-2.25.0-py3-none-any.whl (3.4 MB)
Collecting inquirer==3.1.3
  Downloading inquirer-3.1.3-py3-none-any.whl (18 kB)
Collecting itsdangerous==2.1.2
  Downloading itsdangerous-2.1.2-py3-none-any.whl (15 kB)
Collecting jinja2==3.1.2
  Downloading Jinja2-3.1.2-py3-none-any.whl (133 kB)
Collecting kiwisolver==1.4.4
  Downloading kiwisolver-1.4.4-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl (1.2 MB)
Collecting lightning==2.0.1
  Downloading lightning-2.0.1-py3-none-any.whl (1.8 MB)
Collecting lightning-cloud==0.5.32
  Downloading lightning_cloud-0.5.32-py3-none-any.whl (545 kB)
Collecting lightning-utilities==0.8.0
  Downloading lightning_utilities-0.8.0-py3-none-any.whl (20 kB)
Collecting lit==16.0.0
  Downloading lit-16.0.0.tar.gz (144 kB)
Collecting markdown-it-py==2.2.0
  Downloading markdown_it_py-2.2.0-py3-none-any.whl (84 kB)
Collecting markupsafe==2.1.2
  Downloading MarkupSafe-2.1.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (25 kB)
Collecting matplotlib==3.6.3
  Downloading matplotlib-3.6.3-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (9.4 MB)
Collecting mdurl==0.1.2
  Downloading mdurl-0.1.2-py3-none-any.whl (10.0 kB)
Collecting mmcv==1.7.1
  Downloading mmcv-1.7.1.tar.gz (605 kB)
Collecting mmcv-full==1.7.1
  Downloading mmcv-full-1.7.1.tar.gz (605 kB)
Collecting mpmath==1.3.0
  Downloading mpmath-1.3.0-py3-none-any.whl (536 kB)
Collecting multidict==6.0.4
  Downloading multidict-6.0.4-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (121 kB)
Collecting networkx==3.0
  Downloading networkx-3.0-py3-none-any.whl (2.0 MB)
Collecting ninja==1.11.1
  Downloading ninja-1.11.1-py2.py3-none-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (145 kB)
Collecting nvidia-cublas-cu11==11.10.3.66
  Downloading nvidia_cublas_cu11-11.10.3.66-py3-none-manylinux1_x86_64.whl (317.1 MB)
Collecting nvidia-cuda-cupti-cu11==11.7.101
  Downloading nvidia_cuda_cupti_cu11-11.7.101-py3-none-manylinux1_x86_64.whl (11.8 MB)
Collecting nvidia-cuda-nvrtc-cu11==11.7.99
  Downloading nvidia_cuda_nvrtc_cu11-11.7.99-2-py3-none-manylinux1_x86_64.whl (21.0 MB)
Collecting nvidia-cuda-runtime-cu11==11.7.99
  Downloading nvidia_cuda_runtime_cu11-11.7.99-py3-none-manylinux1_x86_64.whl (849 kB)
Collecting nvidia-cudnn-cu11==8.5.0.96
  Downloading nvidia_cudnn_cu11-8.5.0.96-2-py3-none-manylinux1_x86_64.whl (557.1 MB)
Collecting nvidia-cufft-cu11==10.9.0.58
  Downloading nvidia_cufft_cu11-10.9.0.58-py3-none-manylinux1_x86_64.whl (168.4 MB)
Collecting nvidia-curand-cu11==10.2.10.91
  Downloading nvidia_curand_cu11-10.2.10.91-py3-none-manylinux1_x86_64.whl (54.6 MB)
Collecting nvidia-cusolver-cu11==11.4.0.1
  Downloading nvidia_cusolver_cu11-11.4.0.1-2-py3-none-manylinux1_x86_64.whl (102.6 MB)
Collecting nvidia-cusparse-cu11==11.7.4.91
  Downloading nvidia_cusparse_cu11-11.7.4.91-py3-none-manylinux1_x86_64.whl (173.2 MB)
Collecting nvidia-nccl-cu11==2.14.3
  Downloading nvidia_nccl_cu11-2.14.3-py3-none-manylinux1_x86_64.whl (177.1 MB)
Collecting nvidia-nvtx-cu11==11.7.91
  Downloading nvidia_nvtx_cu11-11.7.91-py3-none-manylinux1_x86_64.whl (98 kB)
Collecting opencv-python==4.7.0.68
  Downloading opencv_python-4.7.0.68-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (61.8 MB)
Collecting ordered-set==4.1.0
  Downloading ordered_set-4.1.0-py3-none-any.whl (7.6 kB)
Collecting orjson==3.8.9
  Downloading orjson-3.8.9-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (274 kB)
Collecting packaging==23.1
  Downloading packaging-23.1-py3-none-any.whl (48 kB)
Collecting pandas==1.5.3
  Downloading pandas-1.5.3-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (12.2 MB)
Collecting pathtools==0.1.2
  Downloading pathtools-0.1.2.tar.gz (11 kB)
Collecting pillow==9.4.0
  Downloading Pillow-9.4.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.3 MB)
Collecting protobuf==4.21.12
  Downloading protobuf-4.21.12-cp37-abi3-manylinux2014_x86_64.whl (409 kB)
Collecting py-cpuinfo==9.0.0
  Downloading py_cpuinfo-9.0.0-py3-none-any.whl (22 kB)
Collecting pydantic==1.10.7
  Downloading pydantic-1.10.7-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.2 MB)
Collecting pyjwt==2.6.0
  Downloading PyJWT-2.6.0-py3-none-any.whl (20 kB)
Collecting pyparsing==3.0.9
  Downloading pyparsing-3.0.9-py3-none-any.whl (98 kB)
Collecting python-dotenv==1.0.0
  Downloading python_dotenv-1.0.0-py3-none-any.whl (19 kB)
Collecting python-editor==1.0.4
  Downloading python_editor-1.0.4-py3-none-any.whl (4.9 kB)
Collecting python-multipart==0.0.6
  Downloading python_multipart-0.0.6-py3-none-any.whl (45 kB)
Collecting pytorch-fid==0.3.0
  Downloading pytorch_fid-0.3.0-py3-none-any.whl (15 kB)
Collecting pytorch-lightning==2.0.1
  Downloading pytorch_lightning-2.0.1-py3-none-any.whl (716 kB)
Collecting pytz==2022.7.1
  Downloading pytz-2022.7.1-py2.py3-none-any.whl (499 kB)
Collecting pywavelets==1.4.1
  Downloading PyWavelets-1.4.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (6.9 MB)
Collecting pyyaml==6.0
  Downloading PyYAML-6.0-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl (701 kB)
Collecting readchar==4.0.5
  Downloading readchar-4.0.5-py3-none-any.whl (8.5 kB)
Collecting requests==2.28.2
  Using cached requests-2.28.2-py3-none-any.whl (62 kB)
Collecting rfc3986==1.5.0
  Using cached rfc3986-1.5.0-py2.py3-none-any.whl (31 kB)
Collecting rich==13.3.3
  Downloading rich-13.3.3-py3-none-any.whl (238 kB)
Collecting scikit-image==0.19.3
  Downloading scikit_image-0.19.3-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (14.0 MB)
Collecting scikit-video==1.1.11
  Downloading scikit_video-1.1.11-py2.py3-none-any.whl (2.3 MB)
Collecting seaborn==0.12.2
  Downloading seaborn-0.12.2-py3-none-any.whl (293 kB)
Collecting sentry-sdk==1.14.0
  Downloading sentry_sdk-1.14.0-py2.py3-none-any.whl (178 kB)
Collecting setproctitle==1.3.2
  Downloading setproctitle-1.3.2-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (31 kB)
Collecting smmap==5.0.0
  Downloading smmap-5.0.0-py3-none-any.whl (24 kB)
Collecting sniffio==1.3.0
  Using cached sniffio-1.3.0-py3-none-any.whl (10 kB)
Collecting soupsieve==2.4
  Downloading soupsieve-2.4-py3-none-any.whl (37 kB)
Collecting starlette==0.22.0
  Downloading starlette-0.22.0-py3-none-any.whl (64 kB)
Collecting starsessions==1.3.0
  Downloading starsessions-1.3.0-py3-none-any.whl (10 kB)
Collecting sympy==1.11.1
  Downloading sympy-1.11.1-py3-none-any.whl (6.5 MB)
Collecting tifffile==2023.1.23.1
  Downloading tifffile-2023.1.23.1-py3-none-any.whl (214 kB)
Collecting timm==0.6.12
  Downloading timm-0.6.12-py3-none-any.whl (549 kB)
Requirement already satisfied: torch==1.8.1 in /ssd-disk2/home/chanwit/anaconda3/envs/promptir/lib/python3.8/site-packages (from -r /ssd-disk2/home/chanwit/PromptIR/condaenv.k079dmf2.requirements.txt (line 108)) (1.8.1)
Collecting torchmetrics==0.11.4
  Downloading torchmetrics-0.11.4-py3-none-any.whl (519 kB)
Collecting torchsummary==1.5.1
  Downloading torchsummary-1.5.1-py3-none-any.whl (2.8 kB)
Collecting triton==2.0.0
  Downloading triton-2.0.0-1-cp38-cp38-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (63.2 MB)
Collecting tsnecuda==3.0.1
  Downloading tsnecuda-3.0.1-py3-none-any.whl (53.2 MB)
Collecting typing-extensions==4.5.0
  Downloading typing_extensions-4.5.0-py3-none-any.whl (27 kB)
Collecting ujson==5.7.0
  Downloading ujson-5.7.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (52 kB)
Collecting urllib3==1.26.14
  Using cached urllib3-1.26.14-py2.py3-none-any.whl (140 kB)
Collecting uvicorn==0.21.1
  Downloading uvicorn-0.21.1-py3-none-any.whl (57 kB)
Collecting uvloop==0.17.0
  Downloading uvloop-0.17.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.6 MB)
Collecting wandb==0.13.9
  Downloading wandb-0.13.9-py2.py3-none-any.whl (2.0 MB)
Collecting watchfiles==0.19.0
  Downloading watchfiles-0.19.0-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.3 MB)
Collecting websocket-client==1.5.1
  Using cached websocket_client-1.5.1-py3-none-any.whl (55 kB)
Collecting websockets==11.0.1
  Downloading websockets-11.0.1-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (129 kB)
Collecting yapf==0.32.0
  Downloading yapf-0.32.0-py2.py3-none-any.whl (190 kB)
Collecting yarl==1.8.2
  Downloading yarl-1.8.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (262 kB)
Collecting psutil
  Downloading psutil-5.9.5-cp36-abi3-manylinux_2_12_x86_64.manylinux2010_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (282 kB)
Requirement already satisfied: numpy>=1.17 in /ssd-disk2/home/chanwit/anaconda3/envs/promptir/lib/python3.8/site-packages (from accelerate==0.18.0->-r /ssd-disk2/home/chanwit/PromptIR/condaenv.k079dmf2.requirements.txt (line 1)) (1.20.3)
Collecting python-dateutil>=2.7.0
  Downloading python_dateutil-2.8.2-py2.py3-none-any.whl (247 kB)
Requirement already satisfied: six>=1.9.0 in /ssd-disk2/home/chanwit/anaconda3/envs/promptir/lib/python3.8/site-packages (from blessed==1.20.0->-r /ssd-disk2/home/chanwit/PromptIR/condaenv.k079dmf2.requirements.txt (line 11)) (1.16.0)
Collecting wcwidth>=0.1.4
  Downloading wcwidth-0.2.6-py2.py3-none-any.whl (29 kB)
Requirement already satisfied: tqdm in /ssd-disk2/home/chanwit/anaconda3/envs/promptir/lib/python3.8/site-packages (from deepspeed==0.8.3->-r /ssd-disk2/home/chanwit/PromptIR/condaenv.k079dmf2.requirements.txt (line 21)) (4.62.0)
Requirement already satisfied: certifi in /ssd-disk2/home/chanwit/anaconda3/envs/promptir/lib/python3.8/site-packages (from httpcore==0.16.3->-r /ssd-disk2/home/chanwit/PromptIR/condaenv.k079dmf2.requirements.txt (line 36)) (2022.12.7)
Collecting traitlets<7.0,>=5.3.0
  Downloading traitlets-5.9.0-py3-none-any.whl (117 kB)
INFO: pip is looking at multiple versions of kiwisolver to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of jinja2 to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of itsdangerous to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of inquirer to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of imageio to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of idna to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of huggingface-hub to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of httpx to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of httptools to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of httpcore to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of hjson to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of h11 to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of gitpython to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of gitdb to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of future to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of fsspec to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of frozenlist to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of fonttools to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of filelock to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of fastapi to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of email-validator to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of einops to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of docker-pycreds to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of dnspython to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of deepspeed to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of deepdiff to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of dateutils to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of dataclasses to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of cycler to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of croniter to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of contourpy to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of cmake to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of click to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of charset-normalizer to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of blessed to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of beautifulsoup4 to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of attrs to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of async-timeout to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of arrow to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of appdirs to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of anyio to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of aiosignal to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of aiohttp to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of addict to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of <Python from Requires-Python> to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of accelerate to determine which version is compatible with other requirements. This could take a while.

The conflict is caused by:
    The user requested torch==1.8.1
    accelerate 0.18.0 depends on torch>=1.4.0
    deepspeed 0.8.3 depends on torch
    lightning 2.0.1 depends on torch<4.0 and >=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

Pip subprocess error:
ERROR: Cannot install -r /ssd-disk2/home/chanwit/PromptIR/condaenv.k079dmf2.requirements.txt (line 1), -r /ssd-disk2/home/chanwit/PromptIR/condaenv.k079dmf2.requirements.txt (line 21), -r /ssd-disk2/home/chanwit/PromptIR/condaenv.k079dmf2.requirements.txt (line 46) and torch==1.8.1 because these package versions have conflicting dependencies.
ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/user_guide/#fixing-conflicting-dependencies
                                                                                                                                                          failed

CondaEnvException: Pip failed

(base) chanwit@devteam-pc:~/PromptIR$
chanwitkepha commented 11 months ago

Finally, I try to edit env.yml file. By remove version number from every pip's dependency then I can install it. Please see attach file below.

Thank you

env.zip

image