vs-code-python設定interpreter

Shift+Ctrl+P, 搜尋settings -> Preferences: Open Workspace settings (JSON)

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
{
//"python.defaultInterpreterPath": "C:\\Users\\user\\AppData\\Local\\Programs\\Python\\Python311\\python.exe",
"python.defaultInterpreterPath": "F:\\Python\\venv\\my_env",
"python.terminal.activateEnvironment": true
//"python.linting.pylintEnabled": true,
//"python.linting.enabled": true,
}
{ //"python.defaultInterpreterPath": "C:\\Users\\user\\AppData\\Local\\Programs\\Python\\Python311\\python.exe", "python.defaultInterpreterPath": "F:\\Python\\venv\\my_env", "python.terminal.activateEnvironment": true //"python.linting.pylintEnabled": true, //"python.linting.enabled": true, }
{
  //"python.defaultInterpreterPath": "C:\\Users\\user\\AppData\\Local\\Programs\\Python\\Python311\\python.exe",
  "python.defaultInterpreterPath": "F:\\Python\\venv\\my_env",
  "python.terminal.activateEnvironment": true
  //"python.linting.pylintEnabled": true,
  //"python.linting.enabled": true,
}