如您所见"python -版本显示python3.10.4
但是解释器显示python 3.7.3
如何更改vscode中的环境?
发布于 2022-05-30 10:09:54
如果您单击VSCode使用的解释器版本,您应该能够在整个设备中选择不同的版本。
发布于 2022-05-30 12:29:53
在VSCode中选择解释器:
https://code.visualstudio.com/docs/python/environments#_work-with-python-interpreters
要在streamlit
中运行vscode
:打开项目的launch.json
文件。复制以下内容:
{
"configurations": [
{
"name": "Python:Streamlit",
"type": "python",
"request": "launch",
"module": "streamlit",
"args": [
"run",
"${file}"
]
}
]
}
发布于 2022-05-31 01:37:34
将以下行添加到您的setting.json (crtl+shift+P "preferences: open (JSON)“)。
"terminal.integrated.env.osx": {
"PATH": ""
}
https://stackoverflow.com/questions/72432540
复制相似问题