Python Issue: ValueError unknown locale: UTF-8 on OS X (Spyder)
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Python Issue: ValueError unknown locale: UTF-8 on OS X (Spyder)相关的知识,希望对你有一定的参考价值。
In your bash_profile you lack of something.
add
export LANG="en_US.UTF-8"
export LC_COLLATE="en_US.UTF-8"
export LC_CTYPE="en_US.UTF-8"
export LC_MESSAGES="en_US.UTF-8"
export LC_MONETARY="en_US.UTF-8"
export LC_NUMERIC="en_US.UTF-8"
export LC_TIME="en_US.UTF-8"
export LC_ALL=
以上是关于Python Issue: ValueError unknown locale: UTF-8 on OS X (Spyder)的主要内容,如果未能解决你的问题,请参考以下文章
Python中的ValueError:解压缩的值太多[重复]
Python:ValueError:无法将字符串转换为浮点数:'0'