Home  >  Article  >  Development Tools  >  Detailed explanation of how to configure sublime text3 to run python under win10

Detailed explanation of how to configure sublime text3 to run python under win10

藏色散人
藏色散人forward
2021-06-16 15:27:344807browse

The following tutorial column will introduce you to sublime text3 configuration and running python from the sublime tutorial column. I hope it will be helpful to friends in need!

Detailed explanation of how to configure sublime text3 to run python under win10

How to run python on sublime text 3 under win10 system

First you need to configure the python environment

Download (Find a version you like on the official website)

https://www.python.org/downloads/windows/

Select Add Python 3.7 to PATH and Install Now

Complete

Check whether the installation is successful

(As shown in the picture is successful )

Open sublime text3--tools--build system--new build system

Input (******* is the python installation path with description at the end)

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

Save under sublime text3 --package--users

It can be run after completion

Finally, let’s talk about finding the installation path (you need to change \ to / when writing)

The above is the detailed content of Detailed explanation of how to configure sublime text3 to run python under win10. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:cnblogs.com. If there is any infringement, please contact admin@php.cn delete