解决[VS Code] Selected interpreter is macOS system Python which is not recommended. Please select different interpreter

最近每次開 VS Code,Python 檔都會跳這個警告
可以用 Shift + Command + P,搜尋「Python: Select Interpreter」
我是選擇了 /usr/bin/python 後,就不會跳警告了
這會在 working directory 下開 .vscode/settings.json 存這個設定
也可以直接將內容改進 VS Code 設定
"python.pythonPath": "/usr/bin/python"

via: frank

你可能感兴趣的:(解决[VS Code] Selected interpreter is macOS system Python which is not recommended. Please select different interpreter)