听说 terminator 这个 Linux 终端不错,就安装了一个。然后习惯性地输入命令:
terminator -h
结果显示:
Traceback (most recent call last):
File "/usr/bin/terminator", line 69, in <module>
OPTIONS = terminatorlib.optionparse.parse_options()
File "/usr/share/terminator/terminatorlib/optionparse.py", line 110, in parse_options
(options, args) = parser.parse_args()
File "/usr/lib/python2.7/optparse.py", line 1399, in parse_args
stop = self._process_args(largs, rargs, values)
File "/usr/lib/python2.7/optparse.py", line 1443, in _process_args
self._process_short_opts(rargs, values)
File "/usr/lib/python2.7/optparse.py", line 1550, in _process_short_opts
option.process(opt, value, values, self)
File "/usr/lib/python2.7/optparse.py", line 788, in process
self.action, self.dest, opt, value, values, parser)
File "/usr/lib/python2.7/optparse.py", line 810, in take_action
parser.print_help()
File "/usr/lib/python2.7/optparse.py", line 1669, in print_help
file.write(self.format_help().encode(encoding, "replace"))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe6 in position 118: ordinal not in range(128)
貌似是字符集问题,但对 python 不熟悉,请教高手,该怎么处理才能让它显示帮助信息?
这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。
V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。
V2EX is a community of developers, designers and creative people.