'How to install python and a working ide on the MacBook Air M1

Sorry in Advance. I do not understand at all how python, an ide like Spyder or pycharm and e.g. anaconda interact.

What I first tried to do is simply downloading anaconda navigator. I started Spyder. Unfortunately there is a lagging issue for MacOs Big Sur that makes Spyder unusable. A solution to that is to download a dmg file for Spyder. I did that and the lagging issue was gone. Unfortunately I think that anaconda and Spyder do not interact anymore. Therefore I cannot install e.g. pytorch via conda install. Also pip install is not possible because the command is not recognized.

Then I downloaded pycharm but I got the error message "invalid Python SDK". I don't now how to solve this.

I have already wasted several hours setting this up and I just don't know what to do now. Can anyone please guide me through this?



Solution 1:[1]

  1. Go here: https://www.python.org/ and download+install the latest version of Python 3. You can now access it as python3 from your terminal.
  2. Go here: https://code.visualstudio.com/ and download+install VSCode. You now have an IDE.
  3. Install the Python plugin for VSCode.
  4. Good to go!

Solution 2:[2]

You need to:

  1. Download Python 3.x (https://www.python.org/downloads/release/python-396/) and choose macOS 64-bit universal2 installer
  2. Download PyCharm Community (https://www.jetbrains.com/pycharm/download/#section=mac) and choose .dmg (Apple Silicon)

enter image description here

Solution 3:[3]

Most simple to run Python on Mac is download Anaconda NavigatorImage of Anaconda navigator and access Spyder through Amaconda. Following is link to install Anaconda

https://www.anaconda.com/products/distribution

Personally I have tried many methods to install python on mac but every time I got different issue, finally settled with Anaconda

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Kosay Jabre
Solution 2 JChris
Solution 3 Sameer