smoothnlp / SmoothNLP

专注于可解释的NLP技术 An NLP Toolset With A Focus on Explainable Inference
GNU General Public License v3.0
624 stars 112 forks source link

Solve UnicodeDecodeError when installing via pip #52

Closed JamesBear closed 4 years ago

JamesBear commented 4 years ago

locale.getpreferedencoding does not return 'utf-8' on windows, so it's best practice to specify 'utf-8' in open(). This is a common mistake in setup.py made by many python projects.