How to configure Python in VSCode on Mac?

青灯夜游
Release: 2020-05-13 15:14:55
forward
6923 people have browsed it

The following article will introduce to you how to configure Python and run Python in VSCode on Mac. It has certain reference value. Friends in need can refer to it. I hope it will be helpful to everyone.

How to configure Python in VSCode on Mac?

Mac uses Visual Studio Code to run Python

I have been using pycharm to develop python programs before, this ide The editor is really nice and has no problems at all. The only problem is that it is too expensive. I also saw that many people are using the free and open source Visual Studio Code. This IDE developed by Juhard is also known as the strongest IDE in the universe. I don’t know if it will become stronger if I use it. The following is the process of configuring and running python. Record it. I will not talk about the installation. Just download the installation package from the official website and install it.

Steps

1. Install the Chinese language package plug-in

After installation, restart and find that the interface has been changed to Chinese.

How to configure Python in VSCode on Mac?

#2. Install and run the plug-in

When you import the .py file, you will be prompted to install a python extension. I agreed directly. Then when installing a code runner, you can read the introduction and find that it is really awesome, Run C, C, Java, JS, PHP, Python, Perl, Ruby, Go, Lua, Groovy, PowerShell, CMD, BASH, F#, C#, VBScript, T...basic mainstream statements are all arranged. Really hard.

How to configure Python in VSCode on Mac?

3. Switch the language environment you want to run.

I installed a 3.6.6 here using pyenv. Let’s demonstrate it below. .

How to configure Python in VSCode on Mac?

4. Click to run

It’s perfect and convenient

How to configure Python in VSCode on Mac?

Recommended tutorial: "MacOSTutorial

The above is the detailed content of How to configure Python in VSCode on Mac?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
mac
source:cnblogs.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!