Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Pylint UnicodeDecodeError utf-8 can't decode byte

When I run pylint installed with pip (version 2.1.1 and Python V.3.7) in windows 10, I get this error:

UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte.

How do we fix it?

Here is the screenshot Pylint error

like image 488
Shyamala Gopalakrishnan Avatar asked Sep 20 '18 05:09

Shyamala Gopalakrishnan


1 Answers

If you haven't already, generate a pylintrc file like this:

pylint --generate-rcfile | out-file -encoding utf8 .pylintrc

It's important to include the encoding option.

like image 172
MGo Avatar answered Sep 27 '22 21:09

MGo