sublime 配置python解释器路径

1.打开 Tools > Build System > New Build System
sublime 配置python解释器路径_第1张图片
2.输入python的安装目录 设置python解释器(python.exe)的路径

{
    "encoding": "utf-8",  
    "working_dir": "$file_path",  
    "shell_cmd": "D:\\Users\\Administrator\\AppData\\Local\\Programs\\Python\\Python39\\python.exe -u \"$file\"",  
    "file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)",  
    "selector": "source.python"
}

3.保存编译器的名称可以取python39.

4.在Build System中选择python39

你可能感兴趣的:(sublime,pycharm,ide,python)