
听说 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 不熟悉,请教高手,该怎么处理才能让它显示帮助信息?