There are two questions here. One is what is PATH and why is it needed, the other is why is pylint not working and although related they have different answers. I will explain both.
First you have to understand the concept of PATH. Whenever you type a command(let's say you typed command
) in cmd in Windows or in a terminal in MacOS or Linux OS, what you are really saying is execute a program with the name command
.
Now the OS cannot possibly look at all the secondary storage devices to find a program with the same name. That would take a long time and there might be multiple programs with the same name. So, it has a list of directories where it looks for that program. This list of directories are known as the PATH.
If you are executing the command pylint
then you are telling Windows to run a program of the name pylint
that exists in one of the directories in the PATH. Windows tries to do that but can't find anything that exists with that name in its list of PATH directories. So, it gives you that error. You can see your windows PATH like explained here.
All python modules are added in the same directory that should exist in the PATH already. So the reason pylint command is not working is probably something else.
The other problem is why pylint is not working. I think the reason for that is you should execute
pip install pylint-django
and not
pip install pylint