To install Python version 3.6.* on a Mac M1, you can follow these steps:
Open Terminal on your Mac M1.
Install Homebrew by running the following command:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Once Homebrew is installed, run the following command to update it:
brew update
Next, use Homebrew to install the pyenv package, which allows you to manage multiple versions of Python:
brew install pyenv
After pyenv is installed, run the following command to install Python 3.6.*:
env PYTHON_CONFIGURE_OPTS="--enable-framework" pyenv install 3.6.0
Once the installation is complete, you can set Python 3.6.* as the default version by running the following command:
pyenv global 3.6.0
To verify that Python 3.6.* has been installed and is working properly, run the following command:
python --version
That's it! You have successfully installed Python version 3.6.* on your Mac M1 using pyenv and Homebrew.
Asked: 2023-05-09 16:35:20 +0000
Seen: 9 times
Last updated: May 09 '23