DEV Community

Cover image for Apple M1 MacBook App Installation Guide

Apple M1 MacBook App Installation Guide

Kodebae on January 12, 2021

If you're a Mac lover and developer like me I bet you just assumed that the new M1 chip was compatible with your developer lifestyle. Well if you h...
Collapse
 
codebyline profile image
Yumei Leventhal

I may be wrong, but it seems to me Python3 comes preinstalled in MBP M1. If it is, do I still need to install another version of Python3 using Homebrew? I'm asking because it seems my Django apps can't access Python3 and I am reluctant to install a duplicate version (had a lot of confusion with the last laptop).
My query results via the Terminal:
MBP21:~$ which python
/usr/bin/python
MBP21:~$ python --version
Python 2.7.18
MBP21:~$ where python
/usr/bin/python
MBP21:~$ python3 --version
Python 3.8.9
MBP21:~$ which python3
/usr/bin/python3
MBP21:~$ where python3
/usr/bin/python3

Collapse
 
kodebae profile image
Kodebae

Hi Yumei, 👋🏽 Humm, I'm not sure about that. This post was originally made when the M1 chip first debuted and I don't know if that was the case back then. But please share any updated recommendations in the comments with everyone. This information, like most technical related things will definitely need to be updated to keep it current and useful. 😁

Collapse
 
codebyline profile image
Yumei Leventhal

Your post was very helpful. My issue was resolved, but I'm not sure I can clearly identify what resolved it--the last thing I did was restarting the Terminal lol. I was trying to work on a project I'd started on another MBP, so I re-created VENV. Python3 does seem to come preinstalled--I didn't install it and didn't think to check specifically for Python3.

Thread Thread
 
kodebae profile image
Kodebae

Well that's really good to hear! I'm glad your issue is resolved. Restarting the Terminal is always a good idea, I do that sometimes too. I didn't know that Python3 is preinstalled now. I wonder if that is because of Monterey iOS. If you ever figure out what resolved your issue please let me know. :)

Thread Thread
 
codebyline profile image
Yumei Leventhal

Update: Though Python3 did come with my MBP, Visual Studio Code wasn't happy using it and gave me an error. So I hadn't resolved anything after all 😬 So I followed the steps you outlined and installed Python3 using Homebrew. The only change I made was brew install python3 instead of brew install python3 *. The * at the end threw an error (No available formula with the name "Applications".)-not sure what that meant. Bottom line: Python3 was successfully installed. Thank you!

Thread Thread
 
kodebae profile image
Kodebae

Yay! Success! I'm so happy that you got it all figured out! Glad my post could help. 😃

Collapse
 
mochadwi profile image
Mochamad Iqbal Dwi Cahyo

The homebrew was already support M1, any reason why we still have to use Rosetta? Afaik, when installing at Rosetta2, all of the package we try to install (e.g: brew install zulu-jdk8), it'll try to download the intel version instead of arm, (e.g: ==> Downloading https://cdn.azul.com/zulu/bin/zulu8.56.0.23-ca-jdk8.0.302-macosx.dmg). Otherwise if we install homebrew and use the arm version, it'll: ==> Downloading https://cdn.azul.com/zulu/bin/zulu8.56.0.23-ca-jdk8.0.302-macosx_aarch64.dmg (expected to download the aarch64 package instead)

Collapse
 
kodebae profile image
Kodebae

To be honest I don't know. I can't say for sure since I don't have access to your computer and I can't see what you see. This blog post really depends upon the individual and when they buy their M1 Mac.

Collapse
 
johanr profile image
Johan Ruiz

Helped a lot! Recently upgraded and this was my guide to getting Homebrew up and running again, cheers!

Collapse
 
kodebae profile image
Kodebae

Awe, thank you so much! I have another video I'm going to share that also helped me get more stuff installed as well. I'll update the post.

Collapse
 
hotdangca profile image
James Robert Perih

PERFECT! Thank you! This helped me get started straight away on the M1 MacBook Air, without having to deal with Big Sur Intel Homebrew shenanigans! Keep rockin it!

Collapse
 
kodebae profile image
Kodebae

Thank you so much James! <3 More to come soon. :)

Collapse
 
sveinbjorn profile image
Sveinbjorn Palsson

Homebrew just installed on my m1, natively, without any hiccups. I guess I'm in the future :)

Collapse
 
kodebae profile image
Kodebae

Yes you are in the future. 🙂 Either that or maybe they fixed the instillation issues already.

Collapse
 
kodebae profile image
Kodebae

I updated the blog with more videos on installing more intel apps on an M1 Mac.