This is meant to help Mac users to setup their Python and GIT environment to run the StreamDiffusion-TD (TouchDesigner) tox for the first time (like if you don't have Python installed yet).
Before starting I recommend you check if you already have Python installed by running:
python3 --version
- If you get
Python 3.10
or higher, you're good to go and you can skip this setup and proceed to the tox. - If you get
command not found: python3
, you can follow the installation steps. - If you get
Python 3.9
or a lower version, you can jump to the step 3.
Read all the gist before executing anything and choose what would work best for you.
Homebrew is a package manager for Mac, similar to apt in a Linux environment. You can use brew
to install packages like Python and Git.
1.1.1 Install Homebrew
Open your terminal and run:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Currently, StreamDiffusion-TD Mac is compliant with any Python 3.10+ version.
brew install python
brew install git
- Download the appropriate Python version from https://www.python.org/downloads/macos/
- Execute the installer and follow the instructions.
- Download the installer from https://git-scm.com/download/mac
- Execute the installer and follow the instructions.
Restart your computer.
Close all terminal windows and open a new one. Sometimes you might need to restart your computer.
python --version
or
python3 --version
You should get a version that is 3.10 or higher.
Close all terminal windows and open a new one.
git --version
You should see your git version.
Check how did you get python installed and where is your python bin located by running:
python3 --version
which python3
- If the output is something similar to
/opt/homebrew/bin/python3
then it means that you've installed using homebrew.
- If your version is older than 3.10 you can update.
brew update
brew upgrade python3
- You can clean up older python 3 versions, if you want.
brew cleanup python3