我刚刚从git仓库中取回用户在Python 2上。我的系统运行的是Python 3,并且没有更改代码,出现此错误:将.py文件转换为正确的Python编码3
TabError: inconsistent use of tabs and spaces in indentation
看来解决方案是更改.py
文件的字符集编码,但在emacs中工作,我不清楚如何执行此操作。我看到这些说明:
https://www.emacswiki.org/emacs/ChangingEncodings
,但我不明白如何应用这些为UTF-8。我会很感激任何建议。
[Make Emacs在Python交互模式下使用UTF-8]的可能副本(http://stackoverflow.com/questions/888406/make-emacs-use-utf-8-with-python-interactive-mode) – JackCC