Whenever the user enters the words “python” in the command prompt it returns an error and the whole path needs to be specified in order for it to work properly. This is because the command prompt needs to locate the “python.exe” in order to load the output and it is unable to do so unless the whole path has been specified. In this article, we will show how to permanently add a path to Python to fix this issue. After this, you will be able to run “python.exe” without having to specify the whole path.

How to Add Path to Python?

It is important to add the path to python to make it work in the command prompt without having to specify a path each time a command is run. Therefore, in this step, we will be adding the path to python permanently. After doing so, we will not have to enter the path every time. Instead, we will just have to enter “python”. In order to do so:

Fix: ‘Command “python setup.py egg_info” failed with error code 1’ When…Fix: Indentation Error PythonFix: Google Drive ‘Error Loading Python DLL’How to Fix ‘CX_Freeze Python Error in Main Script’? How to Add Path to Python  - 36How to Add Path to Python  - 49How to Add Path to Python  - 37How to Add Path to Python  - 52How to Add Path to Python  - 26