显示在Python 2.7.16中的Vscode。。。我怎样才能改成3.8?

2024-04-26 10:58:57 发布

您现在位置:Python中文网/ 问答频道 /正文

当我打开终端VScode python-V时,它向我展示了:Rafaels MacBook-空气:Python-普雷斯顿拉斐兰德$python-V Python 2.7.16版


Tags: 终端vscode空气macbookrafaels
2条回答

如果您的python版本已在计算机上注册,请在vscode中打开一个.py文件, 单击底部的python版本,然后可以选择要使用的环境。你知道吗

Python version screenshot

按左下角的Python 3.8.0键,然后切换到其他已安装的Python版本。你知道吗

enter image description here

相关问题 更多 >