os:ubunto 17.10
Q.terminal执行spyder时报错
(只撷取最尾端资讯)
File "/home/jack/anaconda3/lib/python3.6/_strptime.py", line 31, in _getlang
return locale.getlocale(locale.LC_TIME)
File "/home/jack/anaconda3/lib/python3.6/locale.py", line 581, in getlocale
return _parse_localename(localename)
File "/home/jack/anaconda3/lib/python3.6/locale.py", line 490, in
_parse_localename
raise ValueError('unknown locale: %s' % localename)
ValueError: unknown locale: lzh_TW
上网做功课,判断可能跟这位遇到的问题一样
https://github.com/spyder-ide/spyder/issues/4131
于是开始尝试文章最下面的操作
状况:
第一个指令执行后,换第二个指令时
sudo dpkg-reconfigure locale
这个指令要选两个东西,我试了5.6种组合,怎么改好像都没变,有重开机
我的locale:
LANG=lzh_TW.UTF-8
LANGUAGE=lzh:en_US:en
LC_CTYPE="lzh_TW.UTF-8"
LC_NUMERIC=lzh_TW
LC_TIME=lzh_TW
LC_COLLATE="lzh_TW.UTF-8"
LC_MONETARY=lzh_TW
LC_MESSAGES="lzh_TW.UTF-8"
LC_PAPER=lzh_TW
LC_NAME=lzh_TW
LC_ADDRESS=lzh_TW
LC_TELEPHONE=lzh_TW
LC_MEASUREMENT=lzh_TW
LC_IDENTIFICATION=lzh_TW
LC_ALL=
目前猜测只要能把lzh_TW 改成 zh_TW 应该就能解决,
但不知正确操作方式为何,感谢指导。