Open ghazel opened 1 month ago
I tried dropping the python version requirement to 3.9, and got a different conflict:
ghazel@mbp:~/projects/img2img-turbo % conda env create -f environment.yaml
Warning: you have pip-installed dependencies in your environment file, but you do not list pip itself as one of your conda dependencies. Conda may not use the correct pip to install your packages, and they may end up in the wrong place. Please add an explicit pip dependency. I'm adding one for you, but still nagging you.
Channels:
- pytorch
- defaults
Platform: osx-arm64
Collecting package metadata (repodata.json): done
Solving environment: done
Downloading and Extracting Packages:
Preparing transaction: done
Verifying transaction: done
Executing transaction: done
Installing pip dependencies: | Ran pip subprocess with arguments:
['/opt/homebrew/Caskroom/miniconda/base/envs/img2img-turbo/bin/python', '-m', 'pip', 'install', '-U', '-r', '/Users/ghazel/projects/img2img-turbo/condaenv.ustqmzng.requirements.txt', '--exists-action=b']
Pip subprocess output:
Collecting clip@ git+https://github.com/openai/CLIP.git (from -r /Users/ghazel/projects/img2img-turbo/condaenv.ustqmzng.requirements.txt (line 1))
Cloning https://github.com/openai/CLIP.git to /private/var/folders/0y/htq8tzk13y7gtff3lqn2v15r0000gn/T/pip-install-qu5uk7a_/clip_136ea494b86c48f69a4d524a9e7d4816
Resolved https://github.com/openai/CLIP.git to commit dcba3cb2e2827b402d2701e7e1c7d9fed8a20ef1
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'done'
Collecting einops>=0.6.1 (from -r /Users/ghazel/projects/img2img-turbo/condaenv.ustqmzng.requirements.txt (line 2))
Using cached einops-0.8.0-py3-none-any.whl.metadata (12 kB)
Collecting numpy>=1.24.4 (from -r /Users/ghazel/projects/img2img-turbo/condaenv.ustqmzng.requirements.txt (line 3))
Downloading numpy-2.0.1-cp39-cp39-macosx_14_0_arm64.whl.metadata (60 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 60.9/60.9 kB 715.1 kB/s eta 0:00:00
Collecting open-clip-torch>=2.20.0 (from -r /Users/ghazel/projects/img2img-turbo/condaenv.ustqmzng.requirements.txt (line 4))
Using cached open_clip_torch-2.26.1-py3-none-any.whl.metadata (31 kB)
Collecting opencv-python==4.6.0.66 (from -r /Users/ghazel/projects/img2img-turbo/condaenv.ustqmzng.requirements.txt (line 5))
Using cached opencv_python-4.6.0.66-cp37-abi3-macosx_11_0_arm64.whl.metadata (18 kB)
Collecting pillow>=9.5.0 (from -r /Users/ghazel/projects/img2img-turbo/condaenv.ustqmzng.requirements.txt (line 6))
Downloading pillow-10.4.0-cp39-cp39-macosx_11_0_arm64.whl.metadata (9.2 kB)
Collecting scipy==1.11.1 (from -r /Users/ghazel/projects/img2img-turbo/condaenv.ustqmzng.requirements.txt (line 7))
Downloading scipy-1.11.1-cp39-cp39-macosx_12_0_arm64.whl.metadata (54 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 54.1/54.1 kB 2.3 MB/s eta 0:00:00
Collecting timm>=0.9.2 (from -r /Users/ghazel/projects/img2img-turbo/condaenv.ustqmzng.requirements.txt (line 8))
Using cached timm-1.0.8-py3-none-any.whl.metadata (53 kB)
Collecting tokenizers (from -r /Users/ghazel/projects/img2img-turbo/condaenv.ustqmzng.requirements.txt (line 9))
Downloading tokenizers-0.20.0-cp39-cp39-macosx_11_0_arm64.whl.metadata (6.7 kB)
Collecting torch>=2.0.1 (from -r /Users/ghazel/projects/img2img-turbo/condaenv.ustqmzng.requirements.txt (line 10))
Downloading torch-2.4.0-cp39-none-macosx_11_0_arm64.whl.metadata (26 kB)
Collecting torchaudio>=2.0.2 (from -r /Users/ghazel/projects/img2img-turbo/condaenv.ustqmzng.requirements.txt (line 11))
Downloading torchaudio-2.4.0-cp39-cp39-macosx_11_0_arm64.whl.metadata (6.4 kB)
Collecting torchdata==0.6.1 (from -r /Users/ghazel/projects/img2img-turbo/condaenv.ustqmzng.requirements.txt (line 12))
Downloading torchdata-0.6.1-cp39-cp39-macosx_11_0_arm64.whl.metadata (13 kB)
Collecting torchmetrics>=1.0.1 (from -r /Users/ghazel/projects/img2img-turbo/condaenv.ustqmzng.requirements.txt (line 13))
Using cached torchmetrics-1.4.1-py3-none-any.whl.metadata (20 kB)
Collecting torchvision>=0.15.2 (from -r /Users/ghazel/projects/img2img-turbo/condaenv.ustqmzng.requirements.txt (line 14))
Downloading torchvision-0.19.0-cp39-cp39-macosx_11_0_arm64.whl.metadata (6.0 kB)
Collecting tqdm>=4.65.0 (from -r /Users/ghazel/projects/img2img-turbo/condaenv.ustqmzng.requirements.txt (line 15))
Using cached tqdm-4.66.5-py3-none-any.whl.metadata (57 kB)
Collecting transformers==4.35.2 (from -r /Users/ghazel/projects/img2img-turbo/condaenv.ustqmzng.requirements.txt (line 16))
Using cached transformers-4.35.2-py3-none-any.whl.metadata (123 kB)
Pip subprocess error:
Running command git clone --filter=blob:none --quiet https://github.com/openai/CLIP.git /private/var/folders/0y/htq8tzk13y7gtff3lqn2v15r0000gn/T/pip-install-qu5uk7a_/clip_136ea494b86c48f69a4d524a9e7d4816
ERROR: Ignored the following versions that require a different python version: 1.14.0 Requires-Python >=3.10; 1.14.0rc1 Requires-Python >=3.10; 1.14.0rc2 Requires-Python >=3.10
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
failed
CondaEnvException: Pip failed
ghazel@mbp:~/projects/img2img-turbo % /opt/homebrew/Caskroom/miniconda/base/envs/img2img-turbo/bin/python -V
Python 3.9.19
I guess triton is not available on macOS at all.
ghazel@mbp:~/projects/img2img-turbo % pip index versions triton
WARNING: pip index is currently an experimental command. It may be removed/changed in a future release without prior warning.
ERROR: No matching distribution found for triton
Thanks for pointing this out!
I removed the triton
dependency from the environment.yaml
and requirements.txt
files.
Were you able to resolve your issues after removing this dependency?
-Gaurav