sublime配置python

1、下载python
下载最新版本的python:https://www.python.org/downloads/

image.png

下载完成之后安装就好了

如果不是sublime:
参考:https://baijiahao.baidu.com/s?id=1727424309786374124&wfr=spider&for=pc

sublime接下来参考:
https://www.cnblogs.com/weven/p/7252917.html
https://blog.csdn.net/gala_1/article/details/90517850
https://blog.csdn.net/m0_73479194/article/details/126584118
在配置python编译环境的时候也可以用下面的代码:

{  
    "cmd": ["C:/Program Files/Python39/python.exe","-u","$file"],  //注意要修改为自己的python.exe安装路径
    "file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)",  
    "selector": "source.python",  
    "encoding": "cp936" //这行代码可以解决控制台输出中文乱码问题
}

你可能感兴趣的:(sublime配置python)