Issues installing Python 3.8.10 on macOS 12.3 Monterey

We Are Going To Discuss About Issues installing Python 3.8.10 on macOS 12.3 Monterey. So lets Start this Python Article.

Issues installing Python 3.8.10 on macOS 12.3 Monterey

Advertisements
  1. How to solve Issues installing Python 3.8.10 on macOS 12.3 Monterey

    This worked for me.
    Install gcc first;
    brew install gcc
    And then with gcc run pyenv installation.
    CC=/opt/homebrew/bin/gcc-11 pyenv install 3.8.10

  2. Issues installing Python 3.8.10 on macOS 12.3 Monterey

    This worked for me.
    Install gcc first;
    brew install gcc
    And then with gcc run pyenv installation.
    CC=/opt/homebrew/bin/gcc-11 pyenv install 3.8.10

Solution 1

Advertisements

This worked for me.

Install gcc first;

brew install gcc

And then with gcc run pyenv installation.

CC=/opt/homebrew/bin/gcc-11 pyenv install 3.8.10

enter image description here

Original Author Isanka Wijerathne Of This Content

Solution 2

Advertisements
brew install gcc && CC=`which gcc-11` pyenv install 3.8.10

Original Author LaoLu Of This Content

Solution 3

Advertisements

Apple introduced a change that resulted in its breaking.

In your specific case brew install 3.8.13 should work.

For others on different versions should check this thread

Or use any of these versions 3.7.13, 3.8.13, 3.9.11 and 3.10.3

Original Author rahulg Of This Content

Solution 4

Advertisements

I faced the same issue and the solution that worked for me was to install the version manually, here are the steps I performed to get it done:

  1. Download the python-3.8.10 version here: https://www.python.org/downloads/release/python-3810/
  2. Once downloaded, double-click to install through the installation wizard.
  3. Once completed, from finder or terminal open the directory where it got installed: /Applications/Python 3.8
  4. Run the Install Certificates.command, wait until it completes.
  5. In the same path, run Update Shell Profile.command
  6. You are all set, to validate it run from the terminal: python3 --version

To setup a virtual environment for python version 3.8.10 installed manually:

  1. pip install --upgrade pip
  2. pip install virtualenv
  3. cd my_project_folder/
  4. virtualenv venv
  5. source venv/bin/activate
  6. To deactivate once finish working, run: deactivate

You can get more information about setting up the virtual environment here: https://virtualenv.pypa.io/en/latest/user_guide.html#

Original Author javila Of This Content

Conclusion

So This is all About This Tutorial. Hope This Tutorial Helped You. Thank You.

Also Read,

ittutorial team

I am an Information Technology Engineer. I have Completed my MCA And I have 4 Year Plus Experience, I am a web developer with knowledge of multiple back-end platforms Like PHP, Node.js, Python and frontend JavaScript frameworks Like Angular, React, and Vue.

Leave a Comment