报错
csdn_书剑
这个作者很懒,什么都没留下…
展开
-
使用Pyinstaller 打包依赖sklearn2pmml的py程序,需要引入资源文件
使用pyinstaller打包时,需要注意使用的模块是否有依赖额外的文件,不然会被坑的。例如,sklearn2pmml 模块,其内部依赖着其他jar包,而这些jar包在使用pyinstaller打包的时候是不会自动引入的。这就坑了,明明打包成功,但是一执行就报错。现在有两个解决办法:1、使用.spec文件打包(pyinstaller -F .spec),在datas里面加入资源路径别以为...原创 2020-03-14 11:19:22 · 697 阅读 · 0 评论 -
python sklearn2pmml与dill的冲突 UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 2
基于Python3环境当模块导入顺序为:import dillfrom sklearn2pmml import PMMLPipelinefrom sklearn2pmml import sklearn2pmml 程序报错:print("Standard error:\n{0}".format(error.decode("UTF-8")))UnicodeDecodeErr...原创 2018-12-03 16:16:11 · 740 阅读 · 0 评论 -
windows python3库pydot运行出现:FileNotFoundError: [WinError 2] "dot" not found in path.
测试代码: from sklearn.datasets import load_iris from sklearn import tree iris = load_iris() clf = tree.DecisionTreeClassifier() clf = clf.fit(iris.data, iris.target) from sklearn...原创 2018-12-03 18:13:53 · 13188 阅读 · 28 评论 -
docker启动失败failed to connect to containerd: could not change group /var/run/docker.sock:group docker
docker启动失败failed to connect to containerd: could not change group /var/run/docker.sock:group docker not found查找一下发现找不到文件vi /etc/sysconfig/docker改为:--selinux-enabled=false解决办法:重新安装docker1、查看已安...原创 2019-02-20 14:04:47 · 6728 阅读 · 0 评论