I hope it is ok to ask this even though it is not specifically a programming question. I installed the SublimeLinter
and SublimeLinter-flake8
packages in Sublime Text 3.
I did pip install flake8
and restarted but the console shows the following message:
SublimeLinter: WARNING: cannot locate 'flake8'. Fill in the 'python' or 'executable' setting. WARNING:SublimeLinter.lint.base_linter.python_linter:cannot locate 'flake8'.Fill in the 'python' or 'executable' setting
I suspect it may have to do with setting a path in the user settings, but I am not sure how to go about it. As you may see I am a relative newbie. Thanks.
Please ensure you've followed these steps:
Install SublimeText packages (help)
Install Flake8 (use pip
, or pip3
if you have multiple python versions)
pip3 install flake8
flake8
settings
Notice: Custom settings needs to be on the right(user) side!
{
"linters": {
"flake8": {
"executable": [ "python3", "-m", "flake8" ]
}
}
}
Restart Sublime to enable the changes
Not sure about pip
or pip3
? Please take a look at pip or pip3 to install packages for Python 3?