How to Install Python
- Go to python.org/downloads.
- Download the Python installer based on your operating system.
- 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)