如您所見“python --version show python3.10.4
但解釋器顯示 python 3.7.3

我怎樣才能改變vscode中的環境
uj5u.com熱心網友回復:
如果您單擊 VSCode 使用的解釋器版本,您應該能夠在您的設備上選擇不同的版本。

uj5u.com熱心網友回復:
在 VSCode 中選擇解釋器:
https://code.visualstudio.com/docs/python/environments#_work-with-python-interpreters
要運行:打開專案的streamlit檔案。復制以下內容:vscodelaunch.json
{
"configurations": [
{
"name": "Python:Streamlit",
"type": "python",
"request": "launch",
"module": "streamlit",
"args": [
"run",
"${file}"
]
}
]
}
uj5u.com熱心網友回復:
將以下行添加到您的 setting.json (crtl shift P "preferences: open settings(JSON)")。
"terminal.integrated.env.osx": {
"PATH": ""
}
轉載請註明出處,本文鏈接:https://www.uj5u.com/shujuku/483452.html
