Skip to content

macOS Tahoe 26.3.1 with brew install python@3.13 #3

@JanX2

Description

@JanX2

Thank you for developing exactly what I was looking for. I tried to get this to run on a pretty vanilla macOS Tahoe 26.3.1 after running brew install python@3.13, but I’m still getting the message that I need to do that after trying to install the model from the UI. Any ideas how to debug this?

Seems like an older version of Python is still used. I can't seem to be able to find a way to change that. I am sure 3.13 is installed.

Edit: I don’t know why my previous search attempts had been unsuccessful, but today I tried again and found:
https://www.askpython.com/python/examples/set-homebrew-default-python-version-macos

jan@Mac-mini ~ % python3 --version
Python 3.9.6
jan@Mac-mini ~ % brew unlink python@3.11 && brew link --force --overwrite python@3.13
✔︎ JSON API formula_tap_migrations.jws.json           Downloaded    1.9KB/  1.9KB
✔︎ JSON API cask_tap_migrations.jws.json              Downloaded    2.4KB/  2.4KB
✔︎ JSON API cask.jws.json                             Downloaded   15.3MB/ 15.3MB
✔︎ JSON API formula.jws.json                          Downloaded   31.9MB/ 31.9MB
Unlinking /opt/homebrew/Cellar/python@3.11/3.11.15... 11 symlinks removed.
Warning: Already linked: /opt/homebrew/Cellar/python@3.13/3.13.12_1
To relink, run:
  brew unlink python@3.13 && brew link python@3.13
jan@Mac-mini ~ % brew unlink python@3.13 && brew link python@3.13
jan@Mac-mini ~ % python3 --version
Python 3.9.6
jan@Mac-mini  ~ % which python3
/usr/bin/python3

So…
https://stackoverflow.com/questions/5157678/how-do-i-use-homebrew-installed-python-as-the-default-python

export PATH="$(brew --prefix)/opt/python@3.13/libexec/bin:$PATH"
jan@Mac-mini ~ % which python3
/opt/homebrew/opt/python@3.13/libexec/bin/python3

It doesn’t survive the end of the terminal session though. So I had to add the line to "~/.zshrc"

…
export PATH="$(brew --prefix)/opt/python@3.13/libexec/bin:$PATH"

I’m still getting the same message from SharpGlass. A different environment?

brew install miniconda
eval "$(conda "shell.$(basename "${SHELL}")" hook)"
conda create -n sharp python=3.13
conda activate sharp
cd […]/ml-sharp
pip install -r requirements.txt
sharp --help

"~/.zshrc" needs to canton this now:

export PATH="$(brew --prefix)/opt/python@3.13/libexec/bin:$PATH"
eval "$(conda "shell.$(basename "${SHELL}")" hook)"

Error message agin. This time about a missing "ml-sharp" directory. Copied that manually to the SharpGlass bundle and then in a new Terminal session:

(base) jan@Mac-mini ~ % conda activate sharp                               
(sharp) jan@Mac-mini ~ % /Users/dev/Desktop/SharpGlass/dist/SharpGlass.app/Contents/MacOS/SharpGlass

Finally SharpGlass was up and running!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions