1
billlee 2016-08-21 23:48:21 +08:00
建议在 python 下执行以下程序,看看输出
```python import os import sys print(sys.stdout.encoding) print({k: v for k, v in os.environ.iteritems() if k.startswith('LC') or k == 'LANG'}) ``` 我猜你的环境下 sys.stdout.encoding 是有问题的 |
![]() |
2
adoal 2016-08-22 00:22:04 +08:00
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory 看起来像是系统的 locale 库有问题。你用 dpkg-reconfigure locales 重建一下 locale 库试试,记得选中 en_US.UTF-8 |