/* */

How to Install Python on Mac OS and How to Run Python code

How to install Python on Mac OS and How to write and execute or run your first Python program on Mac OS will be covered in this video.
We start by installing Python 3 and then go through 3 ways to write and execute Python program on Mac.
3 ways to write and execute Python program covered in this video are:
1. Using IDLE, which is an IDE that comes along with Python installation.
2. Using any text editor (in my case I use Atom) to write python program and then execute the program using Terminal window.
3. By using Visual Studio Code (or simple VS Code), which is considered as one of the best IDE for Python.

Installing Python 3 on Mac can be confusing due to the existence of Python 2 which is preinstalled on all Mac OS. However, Python 2 and Python 3 can co-exist on the same machine hence we do not need to uninstall Python 2 before installing Python 3.

To Install Python 3, there are no prerequisites, and the installation is pretty straight forward.
To run your Python code may be confusing for beginners hence in this video we cover 3 different ways or 3 different editors which can be used to get started with writing and running python code.

When executing python code through IDLE, it’s essential to execute the RUN command from the text editor and then view the output in IDLE interpreter.
Whereas text editor does not have the functionality to run program by itself hence we use Terminal window to run the program.
Visual Studio Code (or simple VS Code) along with PyCharm, Jupiter Notebook and few others are considered as one of the best IDE for Python hence in this video we show how VS Code can be used to write and Run Python program.

The video is aimed at helping beginners to get started with installation of Python programming language on Mac and by showing multiple ways to start writing and executing Python code.

Reference Links:
Python Download:

Visual Studio Code Download:

Atom Download:

Please like, subscribe and click on the notification bell to be notified of my latest video’s.


βœ… SQL Tutorial – Basic concepts:

βœ… SQL Tutorial – Intermediate concepts:

βœ… SQL Tutorial – Advance concepts:

βœ… Practice Solving Basic SQL Queries:

βœ… Practice Solving Intermediate SQL Queries:

βœ… Practice Solving Complex SQL Queries:

βœ… Data Analytics Career guidance:

βœ… SQL Course, SQL Training Platform Recommendations:

βœ… Python Tutorial:

βœ… Git and GitHub Tutorial:

βœ… Data Analytics Projects:



  1. I was genuinely so confused on just where I could practice coding this helped so much thank you

  2. My idle is not turning on please help

  3. Straight to the point. Earned a sub.

    You just made me make the leap to have a macbook air/pro or a mac mini for coding thanks for vidπŸ‘πŸ‘πŸ‘

  4. Thank you, not only did you show us how to download it but you showed us a bunch of methods on how to run it, that's awesome.

  5. I tried the common on the terminal and it says common not found, can you help ?

  6. Thanks a lot brother I have my practicals around and I really needed this kinda video…. Gained a sub brother ❀

  7. Thanks! You made this easy!

  8. Thanks for the help !!! Bit confused where to start from, quick solution πŸ™‚

  9. When i am following your step it says : -bash: python: command not found

  10. You made getting python up and running for simple commands being used in tutorials easy, thank you !!!

  11. thank you so much it was helpful for me

  12. really helps a lot!!! thanks!

  13. thanks! your video saved my day!

  14. Even though this was 2 years ago, I just wanted to say thank you so much for making this video. I am taking a CS class in college, but I don't know the first thing about it. You are a lifesaver.

  15. This was fantastic! I was so confused with the options until I came acorss this video! You made it so easy to understand!

  16. I have macOS and it gave me 3.11.4 and having a problem with f"strings😒 on VScode

  17. Thank you very much for your kindness in sharing. It has helped me a lot. All blessings to you! Ü/

Leave a Reply

Your email address will not be published. Required fields are marked *