[英]How do you get Visual Studio Code to use different Python interpreter?
[英]How do you get the Code Runner extension in Visual Studio Code to use the selected Python interpreter?
我想使用Code Runner擴展在 vscode 中快速運行活動的 python 文件。
當我運行它時,我收到消息...
未找到 Python,但可以從 Microsoft Store 安裝: https : //go.microsoft.com/fwlink?linkID=2082640
我希望 Code Runner 使用活動的 vscdode Python 解釋器。 如何?
這需要一些時間才能找到,所以我想我會在這里發布問答以供將來的搜索者使用。
來自 這個 github 帖子。
打開settings.json
文件並添加此設置。
"code-runner.executorMap": {
"python":"$pythonPath $fullFileName",
}
👍
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.