I was working with Visual Studio Code and Python 3.7 installed in the default installation directory (\users\user\appdata\roaming), but when I updated my Python installation to the last version, "3.9.1", and after deleting all previous versions, I decided to install it in another directory (C:\Python), my Visual Studio Code does recognize my Python installation as you can see below:
But when running Visual Studio Code again, it tells me that Pylint isn't installed, logical since I deleted everything from the previous installation.
The problem I'm facing right now is that when I install "pylint" it keeps installing in the default Python directory (\users\user\appdata\roaming) and telling me to add it to the "environment variables".
How can I configure Visual Studio Code to install all libraries/modules in my new Python directory (C:\Python)?
An environment variable tells your system where the python.exe file is located. Pylint doesn't know where python.exe is. Use these steps: