YouTip LogoYouTip

Python2 Vscode Setup

# Python2.x Python VScode Configuration In the previous chapter, we have installed the Python environment. In this chapter, we will introduce the Python VScode configuration. Preparation: * Install VS Code * Install VS Code Python Extension * Install Python 3 ### Install VS Code VSCode (full name: Visual Studio Code) is a free, cross-platform source code editor developed by Microsoft. The VSCode development environment is very simple and easy to use. VSCode installation is also very simple. Open the official website [https://code.visualstudio.com/](https://code.visualstudio.com/), download the software package, and follow the installation steps. During installation, pay attention to the installation path settings. The environment variables are automatically added to the system by default. Check all the following options: !(#) For the complete VSCode installation tutorial, refer to: [ Next, we install the Python extension: !(#) * * * ## Create a Python Code File Open VScode, then click New File: !(#) Click to select language: !(#) Enter Python in the search box and select the Python option: !(#) Enter code: print("Tutorial") Right-click the mouse and select Run File in Interactive Window. **If prompted to install an extension, simply click Install (if not installed, it will keep showing connecting to Python kernel):** !(#) In addition, we can also open an existing file or directory (folder), such as opening a tutorial-test, or you can create one yourself: !(#) Then we create a test.py file, click the new file icon below, and enter the file name test.py: !(#) **Note:** The tutorial-test contains a .vscode folder, which contains some configuration information. You can ignore it for now. Enter the following code in test.py: print("Tutorial") Click the green icon in the upper right corner to run: !(#)
← Ts IntroDeep Agents Usage β†’