今天尝试用sublime text 2 build python文件。没想到控制台给我报这个错误:[Decode error - output not utf-8]

解决方案:

在插件的文件夹下找到python文件夹,进去、修改Python.sublime-build文件。我的操作系统为win7。

{
    "cmd": ["python", "-u", "$file"],
    "file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)",
    "selector": "source.python",
    "encoding": "cp936"
}

 

 

相关文章:

  • 2021-08-10
  • 2021-09-19
  • 2021-08-07
  • 2022-01-18
  • 2021-12-10
  • 2021-09-19
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-12-05
  • 2022-12-23
  • 2022-12-23
  • 2021-06-14
  • 2022-12-23
  • 2021-05-17
  • 2021-06-02
相关资源
相似解决方案