Aha.
Okay, so for any other pyenv users:
Find your brew installed python version:
Johanness-MacBook-Pro-4:axi johannes$ brew info python@3.9
python@3.9: stable 3.9.7 (bottled)
Interpreted, interactive, object-oriented programming language
https://www.python.org/
/usr/local/Cellar/python@3.9/3.9.1_6 (3,933 files, 65.4MB)
Poured from bottle on 2021-02-01 at 14:15:53
From: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/python@3.9.rb
License: Python-2.0
==> Dependencies
Build: pkg-config ✔...
Then to install directly into the brew python version’s packages which Glyphs will use:
/usr/local/Cellar/python@3.9/3.9.1_6/bin/python3.9 -m pip install whatever
Obviously change your versions as needed.
Also, @GeorgSeifert , this defeats the entire point of having separate pyenv versions if you have to install whatever some script needs into your global python which all pyenv’s inherit from when created, no? I mean, I cannot have several brew python@3.9’s, but only the one I’m messing up now…
As of June 2024 brew info will give you a shortcut to the version specific binaries:
brew info python@3.11
==> python@3.11: stable 3.11.9 (bottled)
Interpreted, interactive, object-oriented programming language
https://www.python.org/
/opt/homebrew/Cellar/python@3.11/3.11.9 (3,359 files, 63.3MB) *
Poured from bottle using the formulae.brew.sh API on 2024-04-04 at 13:19:04
From: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/p/python@3.11.rb
License: Python-2.0
==> Dependencies
Build: pkg-config ✔
Required: mpdecimal ✔, openssl@3 ✔, sqlite ✔, xz ✔
==> Caveats
Python has been installed as
/opt/homebrew/bin/python3.11
Unversioned and major-versioned symlinks `python`, `python3`, `python-config`, `python3-config`, `pip`, `pip3`, etc. pointing to
`python3.11`, `python3.11-config`, `pip3.11` etc., respectively, have been installed into
/opt/homebrew/opt/python@3.11/libexec/bin
You can install Python packages with
pip3.11 install <package>
They will install into the site-package directory
/opt/homebrew/lib/python3.11/site-packages
...
e.g. that last bit: pip3.11 install <package>