Skip to content

Instantly share code, notes, and snippets.

@fbarretto
Last active May 8, 2024 00:42
Show Gist options
  • Save fbarretto/d5ea307080808691f338176bd92a9697 to your computer and use it in GitHub Desktop.
Save fbarretto/d5ea307080808691f338176bd92a9697 to your computer and use it in GitHub Desktop.
StreamDiffusion-TD Prerequisites

Setting up Python/GIT in a Mac for StreamDiffusion-TD

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.

1. Installing Python and Git

1.1 Using Homebrew

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)"

1.1.2 Install Python

Currently, StreamDiffusion-TD Mac is compliant with any Python 3.10+ version.

brew install python

1.1.3 Install GIT

brew install git

1.2. Using Installers (not recommended)

1.2.1 Installing Python

1.2.2 Installing Git

2. Checking your installation

Restart your computer.

2.1 Check your Python Installation

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.

2.2 Check your git installation

Close all terminal windows and open a new one.

git --version

You should see your git version.

3. If you already have Python installed

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.

3.1 Updating python version using brew

  • 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment