505 B
505 B
Install Python on macOS
If you have Homebrew installed, you can install Python by running the following command in the terminal (Ctrl + Shift + `):
brew install python3
If you don't have Homebrew, you can download a Python installer for macOS from python.org.
To verify if Python was successfully installed, run the following command in the terminal:
python3 --version