简体   繁体   English

Vscode 显示 Python 2.7.16 ... 我如何更改为 3.8?

[英]Vscode shown Python 2.7.16... How can I change to 3.8?

When I put on terminal VScode python -V it shows me:当我打开终端 VScode python -V它向我显示:

Rafaels-MacBook-Air:PYTHON - PRESTON rafaelandrade$ python -V
Python 2.7.16

Press on the end of left corner where Python 3.8.0 in my case, and then change to your other installed Python versions.在我的情况下,按左下角的Python 3.8.0 ,然后更改为其他已安装的 Python 版本。

在此处输入图片说明

If your version of python is registered on the machine, open a .py file in vscode, click on the python version at the bottom and then you can choose the environment you wish to use.如果你的机器上注册了你的python版本,在vscode中打开一个.py文件,点击底部的python版本,然后你就可以选择你想使用的环境了。

Python版本截图

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM