Skip to content

Commit

Permalink
fix: make it work
Browse files Browse the repository at this point in the history
  • Loading branch information
wy-luke committed Aug 25, 2023
1 parent 732f2a5 commit 47c9247
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions sd-installer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -125,19 +125,24 @@ echo "############ Create virtual env ######################"
if micromamba env list | grep sd >/dev/null; then
echo_green "The sd env already exists"
else
yes | micromamba create -n sd python=3.10.6
yes | micromamba create -n sd python=3.10
echo_green "The sd env has been created successfully"
fi
# Activate sd env
echo_green "Activate sd env"
micromamba activate sd
# Activate pyvenv to update pip to avoid some errors
python -m venv venv
if [ ! -d "stable-diffusion-webui" ]; then
# Activate pyvenv to update pip to avoid some errors
python -m venv venv
fi
source venv/bin/activate
pip install --upgrade pip
# pip install --upgrade pip
# Delete pip cache to avoid some errors
pip cache purge

# Install required packages via micromamba
# micromamba install --yes --file requirements_versions.txt

# Install Stable Diffusion
echo "############ 开始安装 Stable Diffusion ################"
echo "############ Start to install Stable Diffusion ######"
Expand Down

0 comments on commit 47c9247

Please sign in to comment.