ProjectNUWA/DragNUWA

Python3.8 version packages

Closed this issue ยท 11 comments

Hello, first of all compliments for the project, that's sick :)

I tried to install the repo locally but I got some issues with the installation of the packages.

I created an environment with conda using python 3.8.18

Now when I run pip install -r enviroment.txt I get this error, It's about the compatibility with the version of python used and the package versions.

Can I know what Python version are you using?

Log:

(sdxl_drag) PS C:\Users\gabri\Documents\Codes\Projects\DragNUWA> pip install -r .\environment.txt
Collecting clip@ git+https://github.com/openai/CLIP.git (from -r .\environment.txt (line 3))
  Cloning https://github.com/openai/CLIP.git to c:\users\gabri\appdata\local\temp\pip-install-ancddpef\clip_cd12034f0e004f2989a6517763714a75
  Running command git clone --filter=blob:none --quiet https://github.com/openai/CLIP.git 'C:\Users\gabri\AppData\Local\Temp\pip-install-ancddpef\clip_cd12034f0e004f2989a6517763714a75'
  Resolved https://github.com/openai/CLIP.git to commit a1d071733d7111c9c014f024669f959182114e33
  Preparing metadata (setup.py) ... done
Collecting black (from -r .\environment.txt (line 1))
  Using cached black-23.12.1-cp38-cp38-win_amd64.whl.metadata (68 kB)
Collecting chardet (from -r .\environment.txt (line 2))
  Using cached chardet-5.2.0-py3-none-any.whl.metadata (3.4 kB)
Collecting einops>=0.6.1 (from -r .\environment.txt (line 4))
  Using cached einops-0.7.0-py3-none-any.whl.metadata (13 kB)
Collecting fairscale>=0.4.13 (from -r .\environment.txt (line 5))
  Using cached fairscale-0.4.13.tar.gz (266 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Installing backend dependencies ... done
  Preparing metadata (pyproject.toml) ... done
Collecting fire>=0.5.0 (from -r .\environment.txt (line 6))
  Using cached fire-0.5.0.tar.gz (88 kB)
  Preparing metadata (setup.py) ... done
Collecting fsspec>=2023.6.0 (from -r .\environment.txt (line 7))
  Using cached fsspec-2023.12.2-py3-none-any.whl.metadata (6.8 kB)
Collecting invisible-watermark>=0.2.0 (from -r .\environment.txt (line 8))
  Using cached invisible_watermark-0.2.0-py3-none-any.whl.metadata (8.2 kB)
Collecting kornia==0.6.9 (from -r .\environment.txt (line 9))
  Using cached kornia-0.6.9-py2.py3-none-any.whl (569 kB)
Collecting matplotlib>=3.7.2 (from -r .\environment.txt (line 10))
  Using cached matplotlib-3.7.4-cp38-cp38-win_amd64.whl.metadata (5.8 kB)
Collecting natsort>=8.4.0 (from -r .\environment.txt (line 11))
  Using cached natsort-8.4.0-py3-none-any.whl.metadata (21 kB)
Collecting ninja>=1.11.1 (from -r .\environment.txt (line 12))
  Using cached ninja-1.11.1.1-py2.py3-none-win_amd64.whl.metadata (5.4 kB)
Collecting numpy>=1.24.4 (from -r .\environment.txt (line 13))
  Using cached numpy-1.24.4-cp38-cp38-win_amd64.whl.metadata (5.6 kB)
Collecting omegaconf>=2.3.0 (from -r .\environment.txt (line 14))
  Using cached omegaconf-2.3.0-py3-none-any.whl (79 kB)
Collecting open-clip-torch>=2.20.0 (from -r .\environment.txt (line 15))
  Using cached open_clip_torch-2.24.0-py3-none-any.whl.metadata (30 kB)
Collecting opencv-python==4.6.0.66 (from -r .\environment.txt (line 16))
  Using cached opencv_python-4.6.0.66-cp36-abi3-win_amd64.whl (35.6 MB)
Collecting pandas>=2.0.3 (from -r .\environment.txt (line 17))
  Using cached pandas-2.0.3-cp38-cp38-win_amd64.whl.metadata (18 kB)
Collecting pillow>=9.5.0 (from -r .\environment.txt (line 18))
  Using cached pillow-10.2.0-cp38-cp38-win_amd64.whl.metadata (9.9 kB)
Collecting pudb>=2022.1.3 (from -r .\environment.txt (line 19))
  Using cached pudb-2023.1.tar.gz (224 kB)
  Preparing metadata (setup.py) ... done
Collecting pytorch-lightning==2.0.1 (from -r .\environment.txt (line 20))
  Using cached pytorch_lightning-2.0.1-py3-none-any.whl (716 kB)
Collecting pyyaml>=6.0.1 (from -r .\environment.txt (line 21))
  Using cached PyYAML-6.0.1-cp38-cp38-win_amd64.whl.metadata (2.1 kB)
Collecting scipy>=1.10.1 (from -r .\environment.txt (line 22))
  Using cached scipy-1.10.1-cp38-cp38-win_amd64.whl (42.2 MB)
Collecting streamlit>=0.73.1 (from -r .\environment.txt (line 23))
  Using cached streamlit-1.29.0-py2.py3-none-any.whl.metadata (8.2 kB)
Collecting tensorboardx==2.6 (from -r .\environment.txt (line 24))
  Using cached tensorboardX-2.6-py2.py3-none-any.whl (114 kB)
Collecting timm>=0.9.2 (from -r .\environment.txt (line 25))
  Using cached timm-0.9.12-py3-none-any.whl.metadata (60 kB)
Collecting tokenizers==0.12.1 (from -r .\environment.txt (line 26))
  Using cached tokenizers-0.12.1-cp38-cp38-win_amd64.whl (3.3 MB)
Collecting torch>=2.0.1 (from -r .\environment.txt (line 27))
  Using cached torch-2.1.2-cp38-cp38-win_amd64.whl.metadata (26 kB)
Collecting torchaudio>=2.0.2 (from -r .\environment.txt (line 28))
  Using cached torchaudio-2.1.2-cp38-cp38-win_amd64.whl.metadata (6.4 kB)
Collecting torchdata==0.6.1 (from -r .\environment.txt (line 29))
  Using cached torchdata-0.6.1-cp38-cp38-win_amd64.whl (1.3 MB)
Collecting torchmetrics>=1.0.1 (from -r .\environment.txt (line 30))
  Using cached torchmetrics-1.2.1-py3-none-any.whl.metadata (20 kB)
Collecting torchvision>=0.15.2 (from -r .\environment.txt (line 31))
  Using cached torchvision-0.16.2-cp38-cp38-win_amd64.whl.metadata (6.6 kB)
Requirement already satisfied: tqdm>=4.65.0 in c:\users\gabri\.conda\envs\sdxl_drag\lib\site-packages (from -r .\environment.txt (line 32)) (4.66.1)
Collecting transformers==4.19.1 (from -r .\environment.txt (line 33))
  Using cached transformers-4.19.1-py3-none-any.whl (4.2 MB)
ERROR: Ignored the following versions that require a different python version: 0.55.2 Requires-Python <3.5; 1.11.0 Requires-Python <3.13,>=3.9; 1.11.0rc1 Requires-Python <3.13,>=3.9; 1.11.0rc2 Requires-Python <3.13,>=3.9; 1.11.1 Requires-Python <3.13,>=3.9; 1.11.2 Requires-Python <3.13,>=3.9; 1.11.3 Requires-Python <3.13,>=3.9; 1.11.4 Requires-Python >=3.9; 1.12.0rc1 Requires-Python >=3.9; 1.25.0 Requires-Python >=3.9; 1.25.0rc1 Requires-Python >=3.9; 1.25.1 Requires-Python >=3.9; 1.25.2 Requires-Python >=3.9; 1.26.0 Requires-Python <3.13,>=3.9; 1.26.0b1 Requires-Python <3.13,>=3.9; 1.26.0rc1 Requires-Python <3.13,>=3.9; 1.26.1 Requires-Python <3.13,>=3.9; 1.26.2 Requires-Python >=3.9; 1.26.3 Requires-Python >=3.9; 2.1.0 Requires-Python >=3.9; 2.1.0rc0 Requires-Python >=3.9; 2.1.1 Requires-Python >=3.9; 2.1.2 Requires-Python >=3.9; 2.1.3 Requires-Python >=3.9; 2.1.4 Requires-Python >=3.9; 2.2.0rc0 Requires-Python >=3.9; 3.8.0 Requires-Python >=3.9; 3.8.0rc1 Requires-Python >=3.9; 3.8.1 Requires-Python >=3.9; 3.8.2 Requires-Python >=3.9
ERROR: Could not find a version that satisfies the requirement triton==2.0.0 (from versions: none)
ERROR: No matching distribution found for triton==2.0.0

same

same +

same

Seems like after trying to install the modules one by one the process ultimately fails at DeepSpeed which from what I can tell is not compatible with Windows. There are some steps to bypass this if someone wants to have a look, I haven't dived into this too much yet:
microsoft/DeepSpeed#4729

Seems like after trying to install the modules one by one the process ultimately fails at DeepSpeed which from what I can tell is not compatible with Windows. There are some steps to bypass this if someone wants to have a look, I haven't dived into this too much yet: microsoft/DeepSpeed#4729

Yes, exactly, I also tried to install DeepSpeed for windows by compile the package but nothing still the problem, but I think I should try with WSL2.

same

same, was so excited, oh snap

Thanks to @toyxyz for this advice but if you are running Windows you can install WSL to run an Ubuntu OS Terminal on top of Windows, setup is really easy and straightforward:
https://learn.microsoft.com/en-us/windows/wsl/install

Once you install WSL you should be able to get this running

szriru commented

There's no need to install wsl to use deepspeed.

  1. Download this wheel https://github.com/melMass/DeepSpeed/releases/tag/v0.12.7
    (microsoft/DeepSpeed#3145 (comment))
  2. move the file to your dir or you move to the file then pip install deepspeed-0.12.7+40342055-py3-none-any.whl
  3. you successfully installed deepspeed on windows.

Then pip install -r enviroment.txt

There's no need to install wsl to use deepspeed.

  1. Download this wheel https://github.com/melMass/DeepSpeed/releases/tag/v0.12.7
    ([BUG] pip install DeepSeed Error microsoft/DeepSpeed#3145 (comment))
  2. move the file to your dir or you move to the file then pip install deepspeed-0.12.7+40342055-py3-none-any.whl
  3. you successfully installed deepspeed on windows.

Then pip install -r enviroment.txt

dont work in my environment

There's no need to install wsl to use deepspeed.

  1. Download this wheel https://github.com/melMass/DeepSpeed/releases/tag/v0.12.7
    ([BUG] pip install DeepSeed Error microsoft/DeepSpeed#3145 (comment))
  2. move the file to your dir or you move to the file then pip install deepspeed-0.12.7+40342055-py3-none-any.whl
  3. you successfully installed deepspeed on windows.

Then pip install -r enviroment.txt

dont work in my environment

try removing triton==2.0.0