Python is installed as
$HOMEBREW_PREFIX/bin/python3.9
Unversioned and major-versioned symlinks `python`, `python3`, `python-config`, `python3-config`, `pip`, `pip3`, etc. pointing to
`python3.9`, `python3.9-config`, `pip3.9` etc., respectively, are installed into
$HOMEBREW_PREFIX/opt/python@3.9/libexec/bin
You can install Python packages with
pip3.9 install <package>
They will install into the site-package directory
$HOMEBREW_PREFIX/lib/python3.9/site-packages
`idle3.9` requires tkinter, which is available separately:
brew install python-tk@3.9
If you do not need a specific version of Python, and always want Homebrew's `python3` in your PATH:
brew install python3