本文最后更新于 708 天前,其中的信息可能已经有所发展或是发生改变。
| git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui.git --depth=1 |
| conda config --set show_channel_urls yes |
| channels: |
| - defaults |
| show_channel_urls: true |
| default_channels: |
| - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main |
| - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/r |
| - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/msys2 |
| custom_channels: |
| conda-forge: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud |
| msys2: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud |
| bioconda: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud |
| menpo: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud |
| pytorch: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud |
| pytorch-lts: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud |
| simpleitk: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud |
| pkgs_dirs: |
| - D:\APP_PATH\miniconda3\pkgs |
| envs_dirs: |
| - D:\APP_PATH\miniconda3\envs |
运行 conda clean -i 清除索引缓存,保证用的是镜像站提供的索引。
| conda create -n stable-diffusion-webui python=3.10.6 |
| |
| conda remove --name env_name --all |
| |
| conda info --envs |
| conda activate stable-diffusion-webui |
| python -m pip install -i https://pypi.tuna.tsinghua.edu.cn/simple --upgrade pip |
| pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple |
| |
| |
| COMMANDLINE_ARGS=--listen --xformers --enable-insecure-extension-access |