DEV Community

Mohamed Wazeem
Mohamed Wazeem

Posted on

What I Learned While Installing Python

How to Install Python

  1. Go to python.org/downloads.
  2. Download the Python installer based on your operating system.
  3. Install Python using the downloaded file.
    • Make sure you check “Add Python to PATH” if you are using Windows.

What I Found Interesting

Since my school days, I’ve installed Python many times and even helped others do it. But only recently did I realize an important factor during installation — adding Python to the environment variables.

I had noticed that typing python in the Command Prompt didn’t work; instead, I had to use py to check the version of Python I was using. I used to think that python and pip worked only for versions before 3.10, and that for later versions we had to use py and pip3.

But I was wrong. The real reason was that I hadn’t added Python to the PATH environment variable during installation.

Top comments (0)