sublime部署Python报错“output not utf-8”解决方案
先下载安装Python,地址https://www.python.org/downloads/release/python-363/
这是报错信息
打开sublime,选择工具-编译系统-新编译系统
在弹出的“untitled.sublime-build””文件中编辑
{
"cmd": ["D:/software/Python/deal/python.exe", "-u", "$file"],
"file_regex": "^[ ]File \"(…?)\", line ([0-9]*)",
"selector": "source.python",
"encoding": "cp936"
}
保存为python3.sublime-build
再点击工具-编译系统,选择保存的python3,在按ctrl+b运行便可以成功运行。
如此便可成功运行