Download install-mac.sh from clone3/FastGUI: direct link, hf CLI and curl.
- Browser
- Download file 1.06 kB
-
https://huggingface.co/spaces/clone3/FastGUI/resolve/main/install-mac.sh
- Command line
-
hf download hf://spaces/clone3/FastGUI/install-mac.sh
-
curl -L -o install-mac.sh https://huggingface.co/spaces/clone3/FastGUI/resolve/main/install-mac.sh
1.06 kB
| echo Starting FastSD CPU env installation... | |
| set -e | |
| PYTHON_COMMAND="python3" | |
| if ! command -v python3 &>/dev/null; then | |
| if ! command -v python &>/dev/null; then | |
| echo "Error: Python not found, please install python 3.8 or higher and try again" | |
| exit 1 | |
| fi | |
| fi | |
| if command -v python &>/dev/null; then | |
| PYTHON_COMMAND="python" | |
| fi | |
| echo "Found $PYTHON_COMMAND command" | |
| python_version=$($PYTHON_COMMAND --version 2>&1 | awk '{print $2}') | |
| echo "Python version : $python_version" | |
| if ! command -v uv &>/dev/null; then | |
| echo "Error: uv command not found,please install https://docs.astral.sh/uv/getting-started/installation/#__tabbed_1_1 and try again." | |
| exit 1 | |
| fi | |
| BASEDIR=$(pwd) | |
| uv venv --python 3.11.6 "$BASEDIR/env" | |
| # shellcheck disable=SC1091 | |
| source "$BASEDIR/env/bin/activate" | |
| uv pip install torch | |
| uv pip install -r "$BASEDIR/requirements.txt" | |
| chmod +x "start.sh" | |
| chmod +x "start-webui.sh" | |
| read -n1 -r -p "FastSD CPU installation completed,press any key to continue..." key |