Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

The method of setting up python Environment by VScode

2025-04-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

This article will explain in detail how to set up the python environment in VScode. The editor thinks it is very practical, so I share it with you for reference. I hope you can get something after reading this article.

Vscode configures the Python development environment:

Step 1: install Python

There are many tutorials for installing Python online. Just go to the official website to download and install it.

Download link: https://www.python.org/

Step 2: install vscode

Installation is easy, just click on the installation file, and then click next all the time. This software is free and does not need to be cracked.

Download address: https://code.visualstudio.com/

Step 3: install the plug-in

As shown in the figure below, open the software after installation, click the bottom icon on the left, search for Python, select the first plug-in in the list and click install installer.

Step 3: open the working directory

As shown below, click the file icon on the left, and then click the "Open Folder" button to select a folder as the working directory, and then the new files will be stored in this directory.

Step 4: add a configuration

As shown in the following figure, select the third icon on the left, click "Add Configuration" to add the profile, and select the Python option.

After selecting Python, the configuration file launch.json of Python will be generated and added to the installation directory of Python: remember it is a double diagonal bar, otherwise an error will be reported.

Step 5: add user settings

Click File- > Prefrences- > Settings to generate a "User Settings" file and fill in the Python installation directory, as shown in the following figure

This is the end of this article on how to set up the python environment in VScode. I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, please share it for more people to see.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report