Don't Use the System Python
macOS ships with its own Python, but it is older and reserved for system tools. Always install your own.
Option 1 โ Homebrew (Recommended)
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" brew install python
Verify:
python3 --version pip3 --version
Option 2 โ Official Installer
Download from python.org/downloads. Works well if you prefer a GUI installer.
Option 3 โ pyenv (Multiple Versions)
brew install pyenv pyenv install 3.12.7 pyenv global 3.12.7
Code Editor
VS Code or PyCharm for desktop. For zero-install browser coding, open PyForm.
Practise this on PyForm โ free
PyForm runs Python in your browser with an AI tutor trained for HKDSE. No install, no credit card.
Open PyForm โ