TypeError: init() got an unexpected keyword argument ‘encoding’ 原因是python2和python3的差别,如示例,可删掉其中的encoding=‘utf-8’