Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Python by (50.2k points)

I am a beginner in python, and I have downloaded python from this link. Now when I downloaded python 3, then I started the installation and I got this image:

enter image description here

Why do I have to "Add Python 3.5 to PATH"? What is PATH? Why is it not selected by default?

1 Answer

0 votes
by (108k points)

Kindly be informed that the PATH is an environment variable in Windows. It will inform the command line on which folders to look in when attempting to find a file. If you didn't add Python to PATH then you would call it from the command line like this:

C:/Python27/Python some_python_script.py

So, if you want to add it to PATH, you can perform this:

python some_python_script.py

It will work for you as the command line will look over all the PATH folders for python and find it in the folder that the Python installer has added there.

Related questions

0 votes
1 answer
asked Nov 30, 2020 in Python by laddulakshana (16.4k points)
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
...