MacOS Path Talk
1. Where Python and Jupyter Are Installed
- Python and Jupyter typically get installed in one of two places:
- System-wide: Available to all users, installed in
/usr/local/bin
or/opt/homebrew/bin
(if using Homebrew on M1 Macs). - User-specific: Installed in a user’s directory, often inside a virtual environment or using
pip
under~/Library/Python/x.x/bin
.
- System-wide: Available to all users, installed in
2. If you used Homebrew: Homebrew typically installs Python in /opt/homebrew/bin
(for M1 Macs) or /usr/local/bin
(for Intel Macs). Homebrew usually handles $PATH
automatically, but to ensure, you can add the following line to your ~/.zshrc
(for Zsh) or ~/.bash_profile
(for Bash):