Pylint UnicodeDecodeError utf-8 can't decode byte

天大地大妈咪最大 提交于 2020-01-04 07:32:08

问题


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


回答1:


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.



来源:https://stackoverflow.com/questions/52418511/pylint-unicodedecodeerror-utf-8-cant-decode-byte

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!