python3.7+vscode start run in win10

这一类型的问题最好寻找外国人的视频,因为哎,这是人家搞出来的,我虽然会了,但不代表可以表达清楚)

下载python最新版本(我的是3.7 要是不放心跟我下载一个版本)

网址:https://www.python.org/ 

安装时要注意:让他自己配置环境变量

win键 环境变量 在 path 里面添加你下载的python文件路径  //比如 D:/python3.7

下载vscode 

网址:https://code.visualstudio.com/

下载之后 在左侧栏的最后一个按钮中(ctrl + shift +x)

搜做python 一般来说是第一个//也就是微软官方的那个插件 安装启动

操作(英文版//尽量用原生的语言版本,googl  e 的时候好搜索问题)

左上角

第一步找到首选项的设置

1.  File  2.   preferences   3. settings

第二部搜索 pythonpath 并打开 settings.json

最后一步 按照pythonpath的格式把路径陪在 user settings

格式为  "python.pythonPath": "D:/python3.7/python.exe",

猜你喜欢

转载自blog.csdn.net/qq_41448891/article/details/82634633