VS Code Configuration Python development environment

VS Code Configuration Python development environment

Prerequisite plug-ins

  • Python Extension
  • Code Runner

Configuration Code Runner

you have to enter your virtualenv path or you could use.

"code-runner.executorMap": {
        "python": "$pythonPath $fullFileName"
}

Normally, I use python -m venv .venvto create a virtual environment. VS Code can be well compatible and Python venv.

Reference:

Guess you like

Origin www.cnblogs.com/nobilis/p/11955838.html