In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-30 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
This article is about how vscode configures the python development environment. The editor thought it was very practical, so I shared it with you as a reference. Let's follow the editor and have a look.
1. 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.
2. 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.
After adding, as shown in the following figure, my file name is VSCodeProject, and all the letters are capitalized after adding.
3. Add 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.
4. Add user configuration
Click File- > Prefrences- > Settings, generate a "User Settings" file, and fill in the Python installation directory:, as shown below:
5. Create a new hello.py
As shown below, click on the left file icon, move the mouse to the project directory name, mine is VSCODEPROJECT, there will be a + sign of the file, click, and then enter hello.py will generate .py file, how to print ("hello"), click F5, in the following debugging window will come out a hello, no error indicates that the configuration has been successful, and then you can carry out Python development.
Thank you for reading! On how to configure vscode python development environment to share here, I hope the above can be of some help to you, so that you can learn more knowledge. If you think the article is good, you can share it and let more people see it.
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: 214
*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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.