Conda can't install pip dependencies on Windows 10
Lex-DRL opened this issue · comments
Maybe, it's something wrong with my conda setup (I'm more of a pipenv adept). But In my case, any attempt to just use environment.yaml
as is fails with an error.
However, everyfing goes just fine if I:
- manually remove all the pip lines from
environment.yaml
; - create conda env with this modified env;
- manually do
conda activate ldXXX
; - ... and do
pip install ...
(specified manually or withrequirements.txt
- works perfectly either way)
Here's the full error report when I just do conda env create -n ldZZZ -f environment.yaml
.
My Miniconda installation is at: C:\Python\Miniconda3
The local repo is at: P:\1-Scripts\_Python\_neuralNets\StableDiffusion
I have CONDA_ENVS_PATH
env var pointing to P:\1-Scripts\_Python\_envs
Command prompt is launched via Miniconda's "Anaconda prompt" shortcut in start menu (%windir%\System32\cmd.exe "/K" C:\Python\Miniconda3\Scripts\activate.bat C:\Python\Miniconda3
)
(base) P:\1-Scripts\_Python\_neuralNets\StableDiffusion>call conda env create -n ldZZZ -f environment.yaml
Collecting package metadata (repodata.json): done
Solving environment: done
Preparing transaction: done
Verifying transaction: done
Executing transaction: done
Installing pip dependencies: / Ran pip subprocess with arguments:
['P:\\1-Scripts\\_Python\\_envs\\ldZZZ\\python.exe', '-m', 'pip', 'install', '-U', '-r', 'P:\\1-Scripts\\_Python\\_neuralNets\\StableDiffusion\\condaenv.2w25smqe.requirements.txt']
Pip subprocess output:
Obtaining taming-transformers from git+https://github.com/CompVis/taming-transformers#egg=taming-transformers (from -r P:\1-Scripts\_Python\_neuralNets\StableDiffusion\condaenv.2w25smqe.requirements.txt (line 21))
Updating p:\1-scripts\_python\_neuralnets\stablediffusion\src\taming-transformers clone
Obtaining clip from git+https://github.com/openai/CLIP#egg=clip (from -r P:\1-Scripts\_Python\_neuralNets\StableDiffusion\condaenv.2w25smqe.requirements.txt (line 22))
Updating p:\1-scripts\_python\_neuralnets\stablediffusion\src\clip clone
Obtaining GFPGAN from git+https://github.com/TencentARC/GFPGAN#egg=GFPGAN (from -r P:\1-Scripts\_Python\_neuralNets\StableDiffusion\condaenv.2w25smqe.requirements.txt (line 23))
Updating p:\1-scripts\_python\_neuralnets\stablediffusion\src\gfpgan clone
Obtaining realesrgan from git+https://github.com/xinntao/Real-ESRGAN#egg=realesrgan (from -r P:\1-Scripts\_Python\_neuralNets\StableDiffusion\condaenv.2w25smqe.requirements.txt (line 24))
Updating p:\1-scripts\_python\_neuralnets\stablediffusion\src\realesrgan clone
Obtaining k_diffusion from git+https://github.com/hlky/k-diffusion-sd#egg=k_diffusion (from -r P:\1-Scripts\_Python\_neuralNets\StableDiffusion\condaenv.2w25smqe.requirements.txt (line 25))
Updating p:\1-scripts\_python\_neuralnets\stablediffusion\src\k-diffusion clone
Installing build dependencies: started
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'done'
Installing backend dependencies: started
Installing backend dependencies: finished with status 'done'
Preparing wheel metadata: started
Preparing wheel metadata: finished with status 'done'
Obtaining file:///P:/1-Scripts/_Python/_neuralNets/StableDiffusion (from -r P:\1-Scripts\_Python\_neuralNets\StableDiffusion\condaenv.2w25smqe.requirements.txt (line 26))
Requirement already satisfied: torch in e:\p-projects\1-scripts\_python\_envs\ldzzz\lib\site-packages (from clip->-r P:\1-Scripts\_Python\_neuralNets\StableDiffusion\condaenv.2w25smqe.requirements.txt (line 22)) (1.11.0)
Requirement already satisfied: torchvision in e:\p-projects\1-scripts\_python\_envs\ldzzz\lib\site-packages (from clip->-r P:\1-Scripts\_Python\_neuralNets\StableDiffusion\condaenv.2w25smqe.requirements.txt (line 22)) (0.12.0)
Requirement already satisfied: numpy<1.21 in e:\p-projects\1-scripts\_python\_envs\ldzzz\lib\site-packages (from GFPGAN->-r P:\1-Scripts\_Python\_neuralNets\StableDiffusion\condaenv.2w25smqe.requirements.txt (line 23)) (1.19.2)
Requirement already satisfied: Pillow in e:\p-projects\1-scripts\_python\_envs\ldzzz\lib\site-packages (from k_diffusion->-r P:\1-Scripts\_Python\_neuralNets\StableDiffusion\condaenv.2w25smqe.requirements.txt (line 25)) (9.2.0)
Collecting accelerate==0.12.0
Using cached accelerate-0.12.0-py3-none-any.whl (143 kB)
Collecting albumentations==0.4.3
Using cached albumentations-0.4.3-py3-none-any.whl
Collecting einops==0.3.0
Using cached einops-0.3.0-py2.py3-none-any.whl (25 kB)
Collecting gradio==3.1.6
Using cached gradio-3.1.6-py3-none-any.whl (6.1 MB)
Requirement already satisfied: requests in e:\p-projects\1-scripts\_python\_envs\ldzzz\lib\site-packages (from gradio==3.1.6->-r P:\1-Scripts\_Python\_neuralNets\StableDiffusion\condaenv.2w25smqe.requirements.txt (line 16)) (2.28.1)
Collecting imageio==2.9.0
Using cached imageio-2.9.0-py3-none-any.whl (3.3 MB)
Collecting imageio-ffmpeg==0.4.2
Using cached imageio_ffmpeg-0.4.2-py3-none-win_amd64.whl (22.6 MB)
Collecting kornia==0.6
Using cached kornia-0.6.0-py2.py3-none-any.whl (367 kB)
Collecting omegaconf==2.1.1
Using cached omegaconf-2.1.1-py3-none-any.whl (74 kB)
Collecting opencv-python==4.1.2.30
Using cached opencv_python-4.1.2.30-cp38-cp38-win_amd64.whl (33.0 MB)
Collecting opencv-python-headless==4.1.2.30
Using cached opencv_python_headless-4.1.2.30-cp38-cp38-win_amd64.whl (33.0 MB)
Collecting pudb==2019.2
Using cached pudb-2019.2-py3-none-any.whl
Collecting pynvml==11.4.1
Using cached pynvml-11.4.1-py3-none-any.whl (46 kB)
Collecting pytorch-lightning==1.4.2
Using cached pytorch_lightning-1.4.2-py3-none-any.whl (916 kB)
Requirement already satisfied: typing-extensions in e:\p-projects\1-scripts\_python\_envs\ldzzz\lib\site-packages (from pytorch-lightning==1.4.2->-r P:\1-Scripts\_Python\_neuralNets\StableDiffusion\condaenv.2w25smqe.requirements.txt (line 7)) (4.3.0)
Collecting torch-fidelity==0.3.0
Using cached torch_fidelity-0.3.0-py3-none-any.whl (37 kB)
Collecting torchmetrics==0.6.0
Using cached torchmetrics-0.6.0-py3-none-any.whl (329 kB)
Collecting transformers==4.19.2
Using cached transformers-4.19.2-py3-none-any.whl (4.2 MB)
Collecting antlr4-python3-runtime==4.8
Using cached antlr4_python3_runtime-4.8-py3-none-any.whl
Collecting pyDeprecate==0.3.1
Using cached pyDeprecate-0.3.1-py3-none-any.whl (10 kB)
Collecting basicsr>=1.3.4.0
Using cached basicsr-1.4.1-py3-none-any.whl
Collecting facexlib>=0.2.3
Using cached facexlib-0.2.4-py3-none-any.whl (59 kB)
Collecting streamlit>=0.73.1
Using cached streamlit-1.12.2-py2.py3-none-any.whl (9.1 MB)
Collecting test-tube>=0.7.5
Using cached test_tube-0.7.5-py3-none-any.whl
Collecting altair>=3.2.0
Using cached altair-4.2.0-py3-none-any.whl (812 kB)
Collecting blinker>=1.0.0
Using cached blinker-1.5-py2.py3-none-any.whl (12 kB)
Collecting cachetools>=4.0
Using cached cachetools-5.2.0-py3-none-any.whl (9.3 kB)
Collecting click>=7.0
Using cached click-8.1.3-py3-none-any.whl (96 kB)
Collecting fsspec
Using cached fsspec-2022.7.1-py3-none-any.whl (141 kB)
Collecting future>=0.17.1
Using cached future-0.18.2-py3-none-any.whl
Collecting gitpython!=3.1.19
Using cached GitPython-3.1.27-py3-none-any.whl (181 kB)
Collecting gitdb<5,>=4.0.1
Using cached gitdb-4.0.9-py3-none-any.whl (63 kB)
Collecting h11<0.13,>=0.11
Using cached h11-0.12.0-py3-none-any.whl (54 kB)
Collecting huggingface-hub<1.0,>=0.1.0
Using cached huggingface_hub-0.9.1-py3-none-any.whl (120 kB)
Collecting imgaug<0.2.7,>=0.2.5
Using cached imgaug-0.2.6-py3-none-any.whl
Requirement already satisfied: six in e:\p-projects\1-scripts\_python\_envs\ldzzz\lib\site-packages (from imgaug<0.2.7,>=0.2.5->albumentations==0.4.3->-r P:\1-Scripts\_Python\_neuralNets\StableDiffusion\condaenv.2w25smqe.requirements.txt (line 1)) (1.16.0)
Collecting importlib-metadata>=1.4
Using cached importlib_metadata-4.12.0-py3-none-any.whl (21 kB)
Collecting jsonschema>=3.0
Using cached jsonschema-4.14.0-py3-none-any.whl (82 kB)
Collecting attrs>=17.4.0
Using cached attrs-22.1.0-py2.py3-none-any.whl (58 kB)
Collecting importlib-resources>=1.4.0
Using cached importlib_resources-5.9.0-py3-none-any.whl (33 kB)
Collecting packaging>=20.0
Using cached packaging-21.3-py3-none-any.whl (40 kB)
Collecting pandas
Using cached pandas-1.4.3-cp38-cp38-win_amd64.whl (10.6 MB)
Collecting pkgutil-resolve-name>=1.3.10
Using cached pkgutil_resolve_name-1.3.10-py3-none-any.whl (4.7 kB)
Collecting protobuf<4,>=3.12
Using cached protobuf-3.20.1-cp38-cp38-win_amd64.whl (904 kB)
Collecting pyarrow>=4.0
Using cached pyarrow-9.0.0-cp38-cp38-win_amd64.whl (19.6 MB)
Collecting pydeck>=0.1.dev5
Using cached pydeck-0.8.0b1-py2.py3-none-any.whl (4.7 MB)
Collecting Jinja2
Using cached Jinja2-3.1.2-py3-none-any.whl (133 kB)
Collecting MarkupSafe>=2.0
Using cached MarkupSafe-2.1.1-cp38-cp38-win_amd64.whl (17 kB)
Collecting pygments>=1.0
Using cached Pygments-2.13.0-py3-none-any.whl (1.1 MB)
Collecting pympler>=0.9
Using cached Pympler-1.0.1-py3-none-any.whl (164 kB)
Collecting pyparsing!=3.0.5,>=2.0.2
Using cached pyparsing-3.0.9-py3-none-any.whl (98 kB)
Collecting pyrsistent!=0.17.0,!=0.17.1,!=0.17.2,>=0.14.0
Using cached pyrsistent-0.18.1-cp38-cp38-win_amd64.whl (61 kB)
Collecting python-dateutil
Using cached python_dateutil-2.8.2-py2.py3-none-any.whl (247 kB)
Collecting pytz>=2020.1
Using cached pytz-2022.2.1-py2.py3-none-any.whl (500 kB)
Collecting pyyaml
Using cached PyYAML-6.0-cp38-cp38-win_amd64.whl (155 kB)
Collecting regex
Using cached regex-2022.8.17-cp38-cp38-win_amd64.whl (263 kB)
Requirement already satisfied: charset-normalizer<3,>=2 in e:\p-projects\1-scripts\_python\_envs\ldzzz\lib\site-packages (from requests->gradio==3.1.6->-r P:\1-Scripts\_Python\_neuralNets\StableDiffusion\condaenv.2w25smqe.requirements.txt (line 16)) (2.0.4)
Requirement already satisfied: idna<4,>=2.5 in e:\p-projects\1-scripts\_python\_envs\ldzzz\lib\site-packages (from requests->gradio==3.1.6->-r P:\1-Scripts\_Python\_neuralNets\StableDiffusion\condaenv.2w25smqe.requirements.txt (line 16)) (3.3)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in e:\p-projects\1-scripts\_python\_envs\ldzzz\lib\site-packages (from requests->gradio==3.1.6->-r P:\1-Scripts\_Python\_neuralNets\StableDiffusion\condaenv.2w25smqe.requirements.txt (line 16)) (1.26.11)
Requirement already satisfied: certifi>=2017.4.17 in e:\p-projects\1-scripts\_python\_envs\ldzzz\lib\site-packages (from requests->gradio==3.1.6->-r P:\1-Scripts\_Python\_neuralNets\StableDiffusion\condaenv.2w25smqe.requirements.txt (line 16)) (2022.6.15)
Collecting rich>=10.11.0
Using cached rich-12.5.1-py3-none-any.whl (235 kB)
Collecting commonmark<0.10.0,>=0.9.0
Using cached commonmark-0.9.1-py2.py3-none-any.whl (51 kB)
Collecting scikit-image
Using cached scikit_image-0.19.3-cp38-cp38-win_amd64.whl (12.2 MB)
Collecting networkx>=2.2
Using cached networkx-2.8.6-py3-none-any.whl (2.0 MB)
Collecting PyWavelets>=1.1.1
Using cached PyWavelets-1.3.0-cp38-cp38-win_amd64.whl (4.2 MB)
Collecting scipy
Using cached scipy-1.9.1-cp38-cp38-win_amd64.whl (38.6 MB)
Collecting smmap<6,>=3.0.1
Using cached smmap-5.0.0-py3-none-any.whl (24 kB)
Collecting tensorboard>=2.2.0
Using cached tensorboard-2.10.0-py3-none-any.whl (5.9 MB)
Requirement already satisfied: setuptools>=41.0.0 in e:\p-projects\1-scripts\_python\_envs\ldzzz\lib\site-packages (from tensorboard>=2.2.0->pytorch-lightning==1.4.2->-r P:\1-Scripts\_Python\_neuralNets\StableDiffusion\condaenv.2w25smqe.requirements.txt (line 7)) (63.4.1)
Requirement already satisfied: wheel>=0.26 in e:\p-projects\1-scripts\_python\_envs\ldzzz\lib\site-packages (from tensorboard>=2.2.0->pytorch-lightning==1.4.2->-r P:\1-Scripts\_Python\_neuralNets\StableDiffusion\condaenv.2w25smqe.requirements.txt (line 7)) (0.37.1)
Collecting absl-py>=0.4
Using cached absl_py-1.2.0-py3-none-any.whl (123 kB)
Collecting google-auth<3,>=1.6.3
Using cached google_auth-2.11.0-py2.py3-none-any.whl (167 kB)
Collecting google-auth-oauthlib<0.5,>=0.4.1
Using cached google_auth_oauthlib-0.4.6-py2.py3-none-any.whl (18 kB)
Collecting grpcio>=1.24.3
Using cached grpcio-1.47.0-cp38-cp38-win_amd64.whl (3.6 MB)
Collecting markdown>=2.6.8
Using cached Markdown-3.4.1-py3-none-any.whl (93 kB)
Collecting protobuf<4,>=3.12
Using cached protobuf-3.19.4-cp38-cp38-win_amd64.whl (895 kB)
Collecting pyasn1-modules>=0.2.1
Using cached pyasn1_modules-0.2.8-py2.py3-none-any.whl (155 kB)
Collecting pyasn1<0.5.0,>=0.4.6
Using cached pyasn1-0.4.8-py2.py3-none-any.whl (77 kB)
Collecting requests-oauthlib>=0.7.0
Using cached requests_oauthlib-1.3.1-py2.py3-none-any.whl (23 kB)
Collecting oauthlib>=3.0.0
Using cached oauthlib-3.2.0-py3-none-any.whl (151 kB)
Collecting rsa<5,>=3.1.4
Using cached rsa-4.9-py3-none-any.whl (34 kB)
Collecting tensorboard-data-server<0.7.0,>=0.6.0
Using cached tensorboard_data_server-0.6.1-py3-none-any.whl (2.4 kB)
Collecting tensorboard-plugin-wit>=1.6.0
Using cached tensorboard_plugin_wit-1.8.1-py3-none-any.whl (781 kB)
Collecting tifffile>=2019.7.26
Using cached tifffile-2022.8.12-py3-none-any.whl (208 kB)
Collecting tokenizers!=0.11.3,<0.13,>=0.11.1
Using cached tokenizers-0.12.1-cp38-cp38-win_amd64.whl (3.3 MB)
Collecting tornado>=5.0
Using cached tornado-6.2-cp37-abi3-win_amd64.whl (425 kB)
Collecting tqdm
Using cached tqdm-4.64.0-py2.py3-none-any.whl (78 kB)
Collecting tzlocal>=1.1
Using cached tzlocal-4.2-py3-none-any.whl (19 kB)
Collecting urwid>=1.1.1
Using cached urwid-2.1.2-py3-none-any.whl
Collecting validators>=0.2
Using cached validators-0.20.0-py3-none-any.whl
Collecting decorator>=3.4.0
Using cached decorator-5.1.1-py3-none-any.whl (9.1 kB)
Collecting werkzeug>=1.0.1
Using cached Werkzeug-2.2.2-py3-none-any.whl (232 kB)
Collecting zipp>=0.5
Using cached zipp-3.8.1-py3-none-any.whl (5.6 kB)
Collecting addict
Using cached addict-2.4.0-py3-none-any.whl (3.8 kB)
Collecting aiohttp
Using cached aiohttp-3.8.1-cp38-cp38-win_amd64.whl (555 kB)
Collecting aiosignal>=1.1.2
Using cached aiosignal-1.2.0-py3-none-any.whl (8.2 kB)
Collecting async-timeout<5.0,>=4.0.0a3
Using cached async_timeout-4.0.2-py3-none-any.whl (5.8 kB)
Collecting frozenlist>=1.1.1
Using cached frozenlist-1.3.1-cp38-cp38-win_amd64.whl (34 kB)
Collecting multidict<7.0,>=4.5
Using cached multidict-6.0.2-cp38-cp38-win_amd64.whl (28 kB)
Collecting yarl<2.0,>=1.0
Using cached yarl-1.8.1-cp38-cp38-win_amd64.whl (56 kB)
Collecting analytics-python
Using cached analytics_python-1.4.0-py2.py3-none-any.whl (15 kB)
Collecting backoff==1.10.0
Using cached backoff-1.10.0-py2.py3-none-any.whl (31 kB)
Collecting monotonic>=1.5
Using cached monotonic-1.6-py2.py3-none-any.whl (8.2 kB)
Collecting backports.zoneinfo
Using cached backports.zoneinfo-0.2.1-cp38-cp38-win_amd64.whl (38 kB)
Collecting clean-fid
Using cached clean_fid-0.1.28-py3-none-any.whl (23 kB)
Collecting requests
Using cached requests-2.25.1-py2.py3-none-any.whl (61 kB)
Collecting chardet<5,>=3.0.2
Using cached chardet-4.0.0-py2.py3-none-any.whl (178 kB)
Collecting idna<4,>=2.5
Using cached idna-2.10-py2.py3-none-any.whl (58 kB)
Collecting colorama
Using cached colorama-0.4.5-py2.py3-none-any.whl (16 kB)
Collecting entrypoints
Using cached entrypoints-0.4-py3-none-any.whl (5.3 kB)
Collecting fastapi
Using cached fastapi-0.81.0-py3-none-any.whl (54 kB)
Collecting starlette==0.19.1
Using cached starlette-0.19.1-py3-none-any.whl (63 kB)
Collecting anyio<5,>=3.4.0
Using cached anyio-3.6.1-py3-none-any.whl (80 kB)
Collecting pydantic
Using cached pydantic-1.9.2-cp38-cp38-win_amd64.whl (2.1 MB)
Collecting sniffio>=1.1
Using cached sniffio-1.2.0-py3-none-any.whl (10 kB)
Collecting ffmpy
Using cached ffmpy-0.3.0-py3-none-any.whl
Collecting filelock
Using cached filelock-3.8.0-py3-none-any.whl (10 kB)
Collecting filterpy
Using cached filterpy-1.4.5-py3-none-any.whl
Collecting ftfy
Using cached ftfy-6.1.1-py3-none-any.whl (53 kB)
Collecting wcwidth>=0.2.5
Using cached wcwidth-0.2.5-py2.py3-none-any.whl (30 kB)
Collecting httpx
Using cached httpx-0.23.0-py3-none-any.whl (84 kB)
Collecting httpcore<0.16.0,>=0.15.0
Using cached httpcore-0.15.0-py3-none-any.whl (68 kB)
Collecting rfc3986[idna2008]<2,>=1.3
Using cached rfc3986-1.5.0-py2.py3-none-any.whl (31 kB)
Collecting jsonmerge
Using cached jsonmerge-1.8.0-py3-none-any.whl
Collecting lmdb
Using cached lmdb-1.3.0-cp38-cp38-win_amd64.whl (106 kB)
Collecting markdown-it-py[linkify,plugins]
Using cached markdown_it_py-2.1.0-py3-none-any.whl (84 kB)
Collecting linkify-it-py~=1.0
Using cached linkify_it_py-1.0.3-py3-none-any.whl (19 kB)
Collecting mdurl~=0.1
Using cached mdurl-0.1.2-py3-none-any.whl (10.0 kB)
Collecting matplotlib
Using cached matplotlib-3.5.3-cp38-cp38-win_amd64.whl (7.2 MB)
Collecting cycler>=0.10
Using cached cycler-0.11.0-py3-none-any.whl (6.4 kB)
Collecting fonttools>=4.22.0
Using cached fonttools-4.37.1-py3-none-any.whl (957 kB)
Collecting kiwisolver>=1.0.1
Using cached kiwisolver-1.4.4-cp38-cp38-win_amd64.whl (55 kB)
Collecting mdit-py-plugins
Using cached mdit_py_plugins-0.3.0-py3-none-any.whl (43 kB)
Collecting numba
Using cached numba-0.56.0-cp38-cp38-win_amd64.whl (2.5 MB)
Collecting llvmlite<0.40,>=0.39.0dev0
Using cached llvmlite-0.39.0-cp38-cp38-win_amd64.whl (23.2 MB)
Collecting orjson
Using cached orjson-3.8.0-cp38-none-win_amd64.whl (197 kB)
Collecting paramiko
Using cached paramiko-2.11.0-py2.py3-none-any.whl (212 kB)
Requirement already satisfied: cryptography>=2.5 in e:\p-projects\1-scripts\_python\_envs\ldzzz\lib\site-packages (from paramiko->gradio==3.1.6->-r P:\1-Scripts\_Python\_neuralNets\StableDiffusion\condaenv.2w25smqe.requirements.txt (line 16)) (37.0.1)
Collecting bcrypt>=3.1.3
Using cached bcrypt-4.0.0-cp36-abi3-win_amd64.whl (153 kB)
Requirement already satisfied: cffi>=1.12 in e:\p-projects\1-scripts\_python\_envs\ldzzz\lib\site-packages (from cryptography>=2.5->paramiko->gradio==3.1.6->-r P:\1-Scripts\_Python\_neuralNets\StableDiffusion\condaenv.2w25smqe.requirements.txt (line 16)) (1.15.1)
Requirement already satisfied: pycparser in e:\p-projects\1-scripts\_python\_envs\ldzzz\lib\site-packages (from cffi>=1.12->cryptography>=2.5->paramiko->gradio==3.1.6->-r P:\1-Scripts\_Python\_neuralNets\StableDiffusion\condaenv.2w25smqe.requirements.txt (line 16)) (2.21)
Collecting pynacl>=1.0.1
Using cached PyNaCl-1.5.0-cp36-abi3-win_amd64.whl (212 kB)
Collecting psutil
Using cached psutil-5.9.1-cp38-cp38-win_amd64.whl (246 kB)
Collecting pycryptodome
Using cached pycryptodome-3.15.0-cp35-abi3-win_amd64.whl (1.9 MB)
Collecting pydub
Using cached pydub-0.25.1-py2.py3-none-any.whl (32 kB)
Collecting python-multipart
Using cached python_multipart-0.0.5-py3-none-any.whl
Collecting pytz-deprecation-shim
Using cached pytz_deprecation_shim-0.1.0.post0-py2.py3-none-any.whl (15 kB)
Collecting resize-right
Using cached resize_right-0.0.2-py3-none-any.whl (8.9 kB)
Collecting semver
Using cached semver-2.13.0-py2.py3-none-any.whl (12 kB)
Collecting tb-nightly
Using cached tb_nightly-2.11.0a20220827-py3-none-any.whl (5.9 MB)
Collecting toml
Using cached toml-0.10.2-py2.py3-none-any.whl (16 kB)
Collecting toolz
Using cached toolz-0.12.0-py3-none-any.whl (55 kB)
Collecting torchdiffeq
Using cached torchdiffeq-0.2.3-py3-none-any.whl (31 kB)
Collecting tzdata
Using cached tzdata-2022.2-py2.py3-none-any.whl (336 kB)
Collecting uc-micro-py
Using cached uc_micro_py-1.0.1-py3-none-any.whl (6.2 kB)
Collecting uvicorn
Using cached uvicorn-0.18.3-py3-none-any.whl (57 kB)
Collecting wandb
Using cached wandb-0.13.2-py2.py3-none-any.whl (1.8 MB)
Collecting docker-pycreds>=0.4.0
Using cached docker_pycreds-0.4.0-py2.py3-none-any.whl (9.0 kB)
Collecting promise<3,>=2.0
Using cached promise-2.3-py3-none-any.whl
Collecting sentry-sdk>=1.0.0
Using cached sentry_sdk-1.9.5-py2.py3-none-any.whl (157 kB)
Collecting shortuuid>=0.5.0
Using cached shortuuid-1.0.9-py3-none-any.whl (9.4 kB)
Collecting pathtools
Using cached pathtools-0.1.2-py3-none-any.whl
Collecting setproctitle
Using cached setproctitle-1.3.2-cp38-cp38-win_amd64.whl (11 kB)
Collecting watchdog
Using cached watchdog-2.1.9-py3-none-win_amd64.whl (78 kB)
Collecting websockets
Using cached websockets-10.3-cp38-cp38-win_amd64.whl (98 kB)
Collecting yapf
Using cached yapf-0.32.0-py2.py3-none-any.whl (190 kB)
Installing collected packages: pyasn1, idna, chardet, zipp, rsa, requests, pyparsing, pyasn1-modules, oauthlib, cachetools, requests-oauthlib, python-dateutil, packaging, MarkupSafe, kiwisolver, importlib-metadata, google-auth, fonttools, cycler, werkzeug, tifffile, tensorboard-plugin-wit, tensorboard-data-server, sniffio, smmap, scipy, PyWavelets, protobuf, networkx, multidict, mdurl, matplotlib, markdown, llvmlite, imageio, grpcio, google-auth-oauthlib, frozenlist, colorama, absl-py, yarl, yapf, uc-micro-py, tzdata, tqdm, tb-nightly, scikit-image, rfc3986, pyyaml, pytz, pyrsistent, pkgutil-resolve-name, opencv-python, numba, markdown-it-py, lmdb, importlib-resources, h11, gitdb, future, filterpy, backports.zoneinfo, attrs, async-timeout, anyio, aiosignal, addict, wcwidth, toolz, starlette, shortuuid, setproctitle, sentry-sdk, pytz-deprecation-shim, pynacl, pygments, pydantic, psutil, promise, pathtools, pandas, monotonic, mdit-py-plugins, linkify-it-py, jsonschema, Jinja2, httpcore, gitpython, fsspec, filelock, facexlib, entrypoints, docker-pycreds, decorator, commonmark, click, bcrypt, basicsr, backoff, aiohttp, websockets, watchdog, wandb, validators, uvicorn, urwid, tzlocal, tornado, torchmetrics, torchdiffeq, toml, tokenizers, tensorboard, semver, rich, resize-right, regex, python-multipart, pympler, pydub, pyDeprecate, pydeck, pycryptodome, pyarrow, paramiko, orjson, opencv-python-headless, kornia, jsonmerge, imgaug, huggingface-hub, httpx, GFPGAN, ftfy, ffmpy, fastapi, einops, clean-fid, blinker, antlr4-python3-runtime, analytics-python, altair, accelerate, transformers, torch-fidelity, test-tube, taming-transformers, streamlit, realesrgan, pytorch-lightning, pynvml, pudb, omegaconf, latent-diffusion, k-diffusion, imageio-ffmpeg, gradio, clip, albumentations
Attempting uninstall: idna
Found existing installation: idna 3.3
Uninstalling idna-3.3:
Successfully uninstalled idna-3.3
Attempting uninstall: requests
Found existing installation: requests 2.28.1
Uninstalling requests-2.28.1:
Successfully uninstalled requests-2.28.1
Running setup.py develop for GFPGAN
Running setup.py develop for taming-transformers
Running setup.py develop for realesrgan
Attempting uninstall: latent-diffusion
Found existing installation: latent-diffusion 0.0.1
Can't uninstall 'latent-diffusion'. No files were found to uninstall.
Running setup.py develop for latent-diffusion
Running setup.py develop for k-diffusion
Running setup.py develop for clip
Successfully installed GFPGAN Jinja2-3.1.2 MarkupSafe-2.1.1 PyWavelets-1.3.0 absl-py-1.2.0 accelerate-0.12.0 addict-2.4.0 aiohttp-3.8.1 aiosignal-1.2.0 albumentations-0.4.3 altair-4.2.0 analytics-python-1.4.0 antlr4-python3-runtime-4.8 anyio-3.6.1 async-timeout-4.0.2 attrs-22.1.0 backoff-1.10.0 backports.zoneinfo-0.2.1 basicsr-1.4.1 bcrypt-4.0.0 blinker-1.5 cachetools-5.2.0 chardet-4.0.0 clean-fid-0.1.28 click-8.1.3 clip colorama-0.4.5 commonmark-0.9.1 cycler-0.11.0 decorator-5.1.1 docker-pycreds-0.4.0 einops-0.3.0 entrypoints-0.4 facexlib-0.2.4 fastapi-0.81.0 ffmpy-0.3.0 filelock-3.8.0 filterpy-1.4.5 fonttools-4.37.1 frozenlist-1.3.1 fsspec-2022.7.1 ftfy-6.1.1 future-0.18.2 gitdb-4.0.9 gitpython-3.1.27 google-auth-2.11.0 google-auth-oauthlib-0.4.6 gradio-3.1.6 grpcio-1.47.0 h11-0.12.0 httpcore-0.15.0 httpx-0.23.0 huggingface-hub-0.9.1 idna-2.10 imageio-2.9.0 imageio-ffmpeg-0.4.2 imgaug-0.2.6 importlib-metadata-4.12.0 importlib-resources-5.9.0 jsonmerge-1.8.0 jsonschema-4.14.0 k-diffusion kiwisolver-1.4.4 kornia-0.6.0 latent-diffusion linkify-it-py-1.0.3 llvmlite-0.39.0 lmdb-1.3.0 markdown-3.4.1 markdown-it-py-2.1.0 matplotlib-3.5.3 mdit-py-plugins-0.3.0 mdurl-0.1.2 monotonic-1.6 multidict-6.0.2 networkx-2.8.6 numba-0.56.0 oauthlib-3.2.0 omegaconf-2.1.1 opencv-python-4.1.2.30 opencv-python-headless-4.1.2.30 orjson-3.8.0 packaging-21.3 pandas-1.4.3 paramiko-2.11.0 pathtools-0.1.2 pkgutil-resolve-name-1.3.10 promise-2.3 protobuf-3.19.4 psutil-5.9.1 pudb-2019.2 pyDeprecate-0.3.1 pyarrow-9.0.0 pyasn1-0.4.8 pyasn1-modules-0.2.8 pycryptodome-3.15.0 pydantic-1.9.2 pydeck-0.8.0b1 pydub-0.25.1 pygments-2.13.0 pympler-1.0.1 pynacl-1.5.0 pynvml-11.4.1 pyparsing-3.0.9 pyrsistent-0.18.1 python-dateutil-2.8.2 python-multipart-0.0.5 pytorch-lightning-1.4.2 pytz-2022.2.1 pytz-deprecation-shim-0.1.0.post0 pyyaml-6.0 realesrgan regex-2022.8.17 requests-2.25.1 requests-oauthlib-1.3.1 resize-right-0.0.2 rfc3986-1.5.0 rich-12.5.1 rsa-4.9 scikit-image-0.19.3 scipy-1.9.1 semver-2.13.0 sentry-sdk-1.9.5 setproctitle-1.3.2 shortuuid-1.0.9 smmap-5.0.0 sniffio-1.2.0 starlette-0.19.1 streamlit-1.12.2 taming-transformers tb-nightly-2.11.0a20220827 tensorboard-2.10.0 tensorboard-data-server-0.6.1 tensorboard-plugin-wit-1.8.1 test-tube-0.7.5 tifffile-2022.8.12 tokenizers-0.12.1 toml-0.10.2 toolz-0.12.0 torch-fidelity-0.3.0 torchdiffeq-0.2.3 torchmetrics-0.6.0 tornado-6.2 tqdm-4.64.0 transformers-4.19.2 tzdata-2022.2 tzlocal-4.2 uc-micro-py-1.0.1 urwid-2.1.2 uvicorn-0.18.3 validators-0.20.0 wandb-0.13.2 watchdog-2.1.9 wcwidth-0.2.5 websockets-10.3 werkzeug-2.2.2 yapf-0.32.0 yarl-1.8.1 zipp-3.8.1
Pip subprocess error:
Usage: chcp infile outfile
Usage: chcp infile outfile
Usage: chcp infile outfile
failed
CondaEnvException: Pip failed
Apologies, as I'm a novice at python coding...
Yeah, this was frustrating to see. :)
Maybe I'm the one who's doing something wrong. I'm experienced with Python in general, but I'm very unfamiliar with conda.
I guess what's happening here is conda attempts to install pip requirements but some of them actually require any of conda-level prerequisites from environment.yaml
. And for some reason conda doesn't activate the environment prior to calling pip.
That's my best assumption.
As I said, if I just do it manually in two stages, there's no problem.
I more or less had to do the same thing myself in Win11 as well - but it's workin' at least!
This is nearly always caused by not following the instructions correctly, and honestly it's incredibly frustrating to deal with because the solution is always the same, it's you doing something wrong. Sorry but I've dealt with far too many complaints about this.
You will have to read this to see the issue and solutions, I am fed up of repeating myself, again, sorry but it's getting annoying now because it's a solved issue.
Following these installation instructions to the word still gets me to this point only:
anaconda3/miniconda3 detected in C:\ProgramData\miniconda3
Collecting package metadata (repodata.json): done
Solving environment: done
Preparing transaction: done
Verifying transaction: done
Executing transaction: done
Installing pip dependencies: /
The installation remains stuck here for good (or at least some 8-12h I have left it alone). Previously, I did have the original SD (ldm env) set up working but I purged it with conda env remove --name ldm
before downloading this repo, and I did that again when the installation got stuck the first time. And I verified that conda env list
showed only base
.
Have not yet tried the manual environment setup as above but will try that next.
Have not yet tried the manual environment setup as above but will try that next.
If you're going to try my approach - clearly, requirements.txt
needs to be formatted properly. I.e, it should contain everything from environment.yaml
after this line:
- pip:
And this prefix needs to be removed:
-
I.e.: <4 spaces>-<space>
Install with:
pip install -r requirements.txt
@hlky
OK, you know better. I'm not familiar with such guides.
Just to let you know: for me, simple conda env create
still doesn't work. The only thing in my system that differs from your guide is conda installed at a custom path and I'm not reinstalling it to the default one (custom path is a softlink mapped to another drive where all my programs are stored).
So... the issue is still there. And it's not the case of "I'm too lazy to RTFM". But I managed to install it my way, and decided not to bother you anymore.
conda env create
you don't need to do that yourself
there are no issues with webui.cmd or webuildm.cmd
The installation instructions work, in every case of someone having issues it's due to not following the instructions.
@hlky: Oh, I can assure you I followed every single word of the instructions. And I don't know about the elusive external guides that reference this repo, found here via a twitter comment, lol..
To summarize, initially I tried the webuildm.cmd
(after purging my old ldm env in conda
entirely, so clean slate), then even tried the "edit the yaml" + webui.cmd
route but the end result is always the same -- pip gets stuck somewhere without any errors shown. When I got time I think I'll try to setup everything manually to see the install command outputs.
@hiatsu0 just to confirm some things can you tell me
full path of stable-diffusion folder
directory listing (dir /b from cmd or cmd /c dir /b from powershell) of stable-diffusion folder
first line of environment.yaml
also,
did the stable-refusion repo exist previously?
- yes
this is a known issue where the 'src' folder has content and then conda get stuck on installing pip dependencies remove the src folder and run webui.cmd again
- no (it a fresh clone, as in the stable-diffusion directory did not exist at all before)
src folder is not your issue
TL;DR: there seems to be an issue when conda env create
/ conda env update
is called from a folder that is inside a softlinked dir and/or on a mapped drive on Windows.
Yes, it's more of a conda issue.
there are no issues with webui.cmd or webuildm.cmd
So... once again, I removed previous conda env + src dir. And, just to be sure, I've updated git (portable, added to PATH
).
And once again, when I simply launch webui.cmd
, the same error (Usage: chcp infile outfile ... CondaEnvException: Pip failed
) is printed at the same Installing pip dependencies
stage.
However, the server does seem to start and there are no further errors thrown (other than the ones saying that model files for gfpgan
and realesrgan
are missing).
Then, I:
- close the console window (Ctrl+C → Y → enter),
- put
GFPGANv1.3.pth
,RealESRGAN_x4plus.pth
andRealESRGAN_x4plus_anime_6B.pth
to where they belong, - re-launch the cmd.
And this time there's a more informative error at the same stage. After a bunch of Requirement already satisfied
lines, this message appears (the server successfully starts, though):
...
Pip subprocess error:
Usage: chcp infile outfile
Usage: chcp infile outfile
ERROR: Exception:
Traceback (most recent call last):
File "P:\1-Scripts\_Python\_envs\ldo\lib\site-packages\pip\_internal\cli\base_command.py", line 224, in _main
status = self.run(options, args)
File "P:\1-Scripts\_Python\_envs\ldo\lib\site-packages\pip\_internal\cli\req_command.py", line 180, in wrapper
return func(self, options, args)
File "P:\1-Scripts\_Python\_envs\ldo\lib\site-packages\pip\_internal\commands\install.py", line 394, in run
installed = install_given_reqs(
File "P:\1-Scripts\_Python\_envs\ldo\lib\site-packages\pip\_internal\req\__init__.py", line 75, in install_given_reqs
uninstalled_pathset = requirement.uninstall(
File "P:\1-Scripts\_Python\_envs\ldo\lib\site-packages\pip\_internal\req\req_install.py", line 685, in uninstall
uninstalled_pathset = UninstallPathSet.from_dist(dist)
File "P:\1-Scripts\_Python\_envs\ldo\lib\site-packages\pip\_internal\req\req_uninstall.py", line 551, in from_dist
assert (link_pointer == dist.location), (
AssertionError: Egg-link p:\1-scripts\_python\_neuralnets\stablediffusion\src\gfpgan does not match installed location of gfpgan (at e:\p-projects\1-scripts\_python\_neuralnets\stablediffusion\src\gfpgan)
failed
CondaEnvException: Pip failed
Relauncher: Launching...
...
And looks like I've narrowed down the cause of the issue.
The thing is, I extensively use softlinks and mapped drives on my windows system (a-la linux mount). The path I'm launching the script from contains a softlink dir in it's path AND it's also on a mapped drive (the actual files are at e:\p-projects\1-scripts\_python\_neuralnets\stablediffusion
, I run them from p:\1-scripts\_python\_neuralnets\stablediffusion
, P:
points to E:\p-projects
, and e:\p-projects\1-scripts\_python\_neuralnets
is a softlink pointing to a third drive).
So yes, webui.cmd
does work. But no, there is an edge case causing pip stage inside conda call to fail (it's very uncommon, I get it). And the same edge case works with no problem when pip install
used instead of conda's pip install.
I'm not asking you to reopen the issue, just pointing out that there is indeed an issue related to the way conda works. Maybe, it's worth putting to the instructions that a user should ignore CondaEnvException: Pip failed
error if the server itself does start and works as expected.