python sklearn2pmml与dill的冲突 UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 2

基于Python3环境

当模块导入顺序为:

import dill

from sklearn2pmml import PMMLPipeline

from sklearn2pmml import sklearn2pmml

 

程序报错:print("Standard error:\n{0}".format(error.decode("UTF-8")))

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

             

解决办法:调换顺序

from sklearn2pmml import PMMLPipeline

from sklearn2pmml import sklearn2pmml

import dill

你可能感兴趣的:(python,报错)