'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]
- Go here: https://www.python.org/ and download+install the latest version of Python 3. You can now access it as
python3from your terminal. - Go here: https://code.visualstudio.com/ and download+install VSCode. You now have an IDE.
- Install the Python plugin for VSCode.
- Good to go!
Solution 2:[2]
You need to:
- Download Python 3.x (https://www.python.org/downloads/release/python-396/) and choose macOS 64-bit universal2 installer
- Download PyCharm Community (https://www.jetbrains.com/pycharm/download/#section=mac) and choose .dmg (Apple Silicon)
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 |

