nok / sklearn-porter

Transpile trained scikit-learn estimators to C, Java, JavaScript and others.
BSD 3-Clause "New" or "Revised" License
1.28k stars 170 forks source link

install version 0.7.0+ ERROR #62

Closed yhfwww closed 4 years ago

yhfwww commented 4 years ago

After executing "PIP install sklearn Porter" in win7 + Python 3.5, I install 7.0 + by default. An error is reported: UnicodeDecodeError: 'gbk' codec can't decode byte 0x93 in positio egal multibyte sequence

ERROR: Command "python setup.py egg_info" failed with error code 1 in aohf\AppData\Local\Temp\pip-install-kzqmrh2h\sklearn-porter\

nok commented 4 years ago

I think that it was a small encoding bug in the setup.py and it's already been fixed. Did you test the latest stable version?

pip install -U sklearn-porter
nok commented 4 years ago

In addition I merged and tested a PR related to this issue: https://github.com/nok/sklearn-porter/commit/67f9557f0e1efc86019a21a86b43fcd7c3a3f6a1