Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- set -e # Exit on any error
- # Move to home directory
- cd ~
- # Download Miniconda installer
- wget -q https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
- # Install Miniconda silently
- bash Miniconda3-latest-Linux-x86_64.sh -b -p $HOME/miniconda
- # Initialize conda for bash
- eval "$($HOME/miniconda/bin/conda shell.bash hook)"
- conda init
- source ~/.bashrc
- # Add deadsnakes PPA and install Python 3.10
- sudo add-apt-repository -y ppa:deadsnakes/ppa
- sudo apt update -y
- sudo apt install -y python3.10 python-is-python3
- # Create conda environment
- cd ~/stable-diffusion-webui || { echo "Folder not found"; exit 1; }
- conda create -n sdwebui python=3.10 -y
- conda activate sdwebui
- # Install pip & venv
- sudo apt update -y
- sudo apt install -y python3-pip python3-venv
- # Verify pip version
- python -m pip --version
- # Launch SD WebUI
- python launch.py --theme dark --xformers --no-half-vae --listen
Advertisement
Add Comment
Please, Sign In to add comment