'pylint' is not recognized as an internal or external command, operable program or batch file
Question:
I am on Windows 10.
I installed the "pylint" package with the command pip install pylint --user
and it successfully got installed.
But when I try to run the command in command prompt,I am getting the 'pylint' is not recognized as an internal or external command, operable program or batch file.
I checked the path and it is installed with all the other python packages.How do I solve this?
Answers:
The following command worked for me:
py -m pylint file.py
Found a way to make it work
- search for "edit the system environment variables" in search.
- click environment variables.
- under "system variables" click "path" and click edit.
- click "new".
- go back and copy the path where python package(pylint) is installed and paste it there.
- click ok everything.
- check now it works…
The below command has taken from the first answer but works fine for the new python version
python3 -m pylint <File_Name>
I am on Windows 10.
I installed the "pylint" package with the command pip install pylint --user
and it successfully got installed.
But when I try to run the command in command prompt,I am getting the 'pylint' is not recognized as an internal or external command, operable program or batch file.
I checked the path and it is installed with all the other python packages.How do I solve this?
The following command worked for me:
py -m pylint file.py
Found a way to make it work
- search for "edit the system environment variables" in search.
- click environment variables.
- under "system variables" click "path" and click edit.
- click "new".
- go back and copy the path where python package(pylint) is installed and paste it there.
- click ok everything.
- check now it works…
The below command has taken from the first answer but works fine for the new python version
python3 -m pylint <File_Name>