python VS Code Config

来源:互联网 发布:中国统计网数据库 编辑:程序博客网 时间:2024/05/29 13:31

python VS Code Config

Creating Virtual Environments

C:\Users\fengdu\AppData\Local\Programs\Python\Python36-32>python -m venv C:\users\fengdu\workspace\python\myenv

Install VS Code python extension

Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter

ext install python

Activate the Virtual Environment from your Terminal/Command Window and then launch VS Code

  1. Ensure none of the Python paths are configured in the settings.json file (leave them to their defaults).
  2. Open your terminal (command) window and activate the relevant Python environment
  3. Close all instances of VS Code
  4. Next, launch VS Code from that same terminal (command window) session
(myenv) C:\Users\fengdu\workspace\python\hello>code .
0 0
原创粉丝点击