Using Flake8 in VSCode...?
Solution 1
Usually yeah it will. But if it doesn't work for you, then you can try specifying absolute path to flake8 and enable it explicitly like so :
"python.linting.flake8Enabled": true,
"python.linting.flake8Path": "path/to/flake8",
you can even specify path to your conda environment :
"python.condaPath": "path/to/condaenv/",
Solution 2
Have you tried to:
- ctrl + shift + p
- write "select linter" then click on it
- click on flake8
Maybe that helps.
Solution 3
Yes, it will. You'll have to install flake8
into each environment that you specify as an interpreter for a project in VSCode.
Chris Macaluso
Industrial CNC programmer making the cross-over to developer. Background in office automation scripting, data cleaning and analysis with Python. Currently learning full-stack web development.
Updated on April 19, 2021Comments
-
Chris Macaluso about 3 years
My VSCode is using a locally installed anaconda environment, at the default directory, which places it in Program Files. Because of this I'm unable to install flake8 through VSCode, I get a permission error. If I update my conda environment at the local level to install flake8, does anyone know if VSCode recognize and be able to use the package then?