Ask Your Question
4

How can I install Python version 3.6.* on a Mac M1?

asked 2023-05-09 16:35:20 +0000

djk gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2023-05-09 16:46:01 +0000

lakamha gravatar image

To install Python version 3.6.* on a Mac M1, you can follow these steps:

  1. Open Terminal on your Mac M1.

  2. Install Homebrew by running the following command:

    /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
    
  3. Once Homebrew is installed, run the following command to update it:

    brew update
    
  4. Next, use Homebrew to install the pyenv package, which allows you to manage multiple versions of Python:

    brew install pyenv
    
  5. After pyenv is installed, run the following command to install Python 3.6.*:

    env PYTHON_CONFIGURE_OPTS="--enable-framework" pyenv install 3.6.0
    
  6. 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
    
  7. 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.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2023-05-09 16:35:20 +0000

Seen: 9 times

Last updated: May 09 '23