I installed vim-flake8 by git cloning it on my Pathogen bundle folder as usual, but when I tried to run the plugin pressing F7 or using :call Flake8()
in one Python file I receive the following message:
Error detected while processing function Flake8:
line 8:
File flake8 not found. Please install it first.
Anyone has some clue about what is going on ?
The error message is telling you that you didn't install the program flake8. Install it.
Assuming pip is installed
pip install flake8
should work.
If installing flake8 via pip is not working try this:
apt-get install flake8
Worked for me.
If you installed flake8 already and that error occurred still, then call flake8 using absolute path.
To do this, edit line 73 of ~/.vim/autoload/flake8.vim
as following:
call s:DeclareOption('flake8_cmd', '', '"/absolute/path/to/flake8"')
pip install flake8
and if you run into permission errors:
sudo -H pip install flake8
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With