Install Python

Because Python is cross-platform, it can run on Windows, Mac, and various Linux/Unix systems. You can write Python programs on Windows and run them on Linux.

To start programming Python, you have to install Python on your computer. Once installed, you get the Python interpreter (which runs Python programs), a command-line interaction environment, and a simple INTEGRATED development environment.

Install Python 3.8

Currently, there are two versions of Python, 2.x and 3.x, which are incompatible. As 3.x becomes more and more popular, our tutorial will build on the latest version of Python 3.8. Make sure you have the latest 3.8.x version of Python installed on your computer so that you can learn this tutorial painlessly.

Install Python on your Mac

If you're on a Mac with OS X>=10.9, the Python version comes with 2.7. There are two ways to install the latest Python 3.8:

Method 1: Download the Python 3.8 installer from the Python official website, then double-click to run and install.

Method 2: if Homebrew is installed, brew install python3 directly by the command brew install python3.

Install Python on Linux

If you are using Linux, I can assume that you have Linux admin experience and that you should have no problem installing Python 3 yourself. Otherwise, switch back to Windows.

For the vast majority of students who are still using Windows, if you don't plan to switch to a Mac in the near future, read on.

Install Python on Windows

First, download the corresponding 64-bit installer or 32-bit installer for Python 3.8 from the Python official website based on your Windows version (64-bit or 32-bit). Then, run the downloaded EXE installer:

In particular, check Add Python 3.8 to PATH and click "Install Now" to complete the installation.

Run Python

After successful installation, open the command prompt window and type Python:

C:\> python                                             │
│Python 3.8.x ...                                        │
│[MSC v... 64 bit (AMD64)] on win32                      │
│Type "help", "copyright", "credits" or "license" for mor│
│information.                                            │
│>>> _    

When you see the screen above, Python is installed successfully!

Leave a Reply

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