Python 2 announced the end of support on January 1, 2020. Many projects and package managers, including Homebrew, have stopped supporting Python 2.
If you still want to install Python 2 now, you need to download the installation package from the Python official website:
- Visit Python's releases page .
- Find the last version of Python 2 (Python 2.7.18) at the bottom of the page.
- Download the installation package and install it