You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Error installing python3.5 on Mac OS 11, Big Sur, M1 Macbook Pro

Using pyenv to install 3.5.2. Following is the error:


configure: error: Unexpected output of 'arch' on OSX

make: *** No targets specified and no makefile found. Stop.


I have also tried using homebrew and python 3.5 installer, both throw the following error on execution:

zsh: killed python3.5


I am using Django 1.8, hence I cannot upgrade python, please help me setup.


MacBook Pro 13″, macOS 11.2

Posted on Apr 25, 2021 3:49 AM

Reply

Similar questions

2 replies

Apr 25, 2021 5:57 AM in response to payalsk

Hi,

M1 Mac requires python 3.9.1 or later

Open Terminla.app


Install Homebrew

$ cd /opt

$ sudo mkdir homebrew

$ sudo chown $USER:admin homebrew

$ curl -L https://github.com/Homebrew/brew/tarball/master | tar xz --strip 1 -C homebrew


Export PATH

$ echo 'export PATH=“/opt/homebrew/bin:$PATH”' >> ~/.zshrc

$ exec $SHELL -l


Install anyenv

$ brew install anyenv

$ echo 'eval "$(anyenv init -)"' >> ~/.zshrc

$ exec $SHELL -l


Init the anyenv

$ anyenv install --init


Install update plugin

$ mkdir -p $(anyenv root)/plugins

$ git clone https://github.com/znz/anyenv-update.git $(anyenv root)/plugins/anyenv-update


Install nodenv with anyenv

$ anyenv install nodenv


Check installable node

$ nodenv install -l


Install 14.15.4(ex.)

$ nodenv install 14.15.4

$ nodenv rehash


Definiton node for gloval

$ nodenv global 14.15.4

$ nodenv local 14.15.4


Install pyenv

$ anyenv install pyenv

$ exec $SHELL -l


List installable python versions

$ pyenv install -l


Install Miniforge

$ pyenv install miniforge3-4.9.2

$ exec $SHELL -l


$ python --version

Python 2.7.16

$ pyenv global miniforge3-4.9.2

$ exec $SHELL -l

$ python --version

Python 3.9.1

$ which python

/Users/[your_acount]/.anyenv/envs/pyenv/shims/python

$ which pip

/Users/[your_acount]/.anyenv/envs/pyenv/shims/pip


That's all.

Good luck.


Apr 26, 2021 3:05 AM in response to kaz-k

Like I mentioned Python 3.9.x is not an option, as our production environment runs on python 3.5.x


Is there any way by which I can install python 3.5??


What Im not able to understand is that the python version installed in the laptop was 2.7 if this version can be supported on M1 then 3.5 should be supported as well. Please please help!!! Im in a desperate situation. Will downgrading my OS from Big Sur to Catalina help?

Error installing python3.5 on Mac OS 11, Big Sur, M1 Macbook Pro

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.