sklearn-port 库在window下安装
anaconda python3.7下安装报错
“UnicodeDecodeError: ‘gbk’ codec can’t decode byte 0x93 in position 3136: illegal multibyte sequence”
安装步骤:
1、新建环境
>conda create -n sklearn-port python=3.7 #python 最新版
>conda activate sklearn-port
2、下载软件
>git clone -b stable https://github.com/nok/sklearn-porter.git
>cd sklearn-porter
3、修改setup.py
将 readme = open(readme_path, ‘r’).read().strip()
改为 readme = open(readme_path, ‘r’, encoding=‘utf-8’).read().strip()
4、使用setup.py安装
>python setup.py install
5、测试test_sklean_porter.py
from sklearn import svm
from sklearn import datasets
from sklearn_porter import Porter
clf = svm.SVC(gam