Click the link to download the latest Python 3 release on your computer. In your browser, navigate to the Python Releases for macOS page, on Python's official website.Ģ.
If you already have a version of Python 3 installed, upgrade the package with the brew upgrade command: brew upgrade python3 Upgrade Python with the Installerġ. If you are upgrading from Python 2, install Python 3 with the command: brew install python3 Update Homebrew by running: brew updateĢ. On macOS, you can get a working C and C++ compiler as well as make by installing XCode or the XCode Command Line Tools. If you do not have Homebrew, install it by typing the following script in the terminal: /bin/bash -c '$(curl -fsSL )'ġ. Pip is the Python Packaging Authoritys recommended tool for installing packages from the Python Package Index, 3.1. Windows and macOS pip install -U wxPython If you are on Windows or macOS with a compatible Python build, then the command shown above will download the appropriate wheel file from the latest release, and install it in your active Python environment or virtual environment. Install Python in the macOS terminal using the Homebrew package manager. On macOS, Python can be installed, upgraded, and maintained using the command line interface or the GUI. Start the interactive Python 3.9 experience by finding the app in the Start Menu.