首页 > 编程语言 > 详细

visual studio code配置python环境

时间:2019-12-27 21:04:17      阅读:306      评论:0      收藏:0      [点我收藏+]

1.本地需要安装ptyhon

2.安装visual studio code, 配置里安装python, 新建文件(工作目录 )

launch.json配置

{
    // 使用 IntelliSense 了解相关属性。 
    // 悬停以查看现有属性的描述。
    // 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387
    "version": "0.2.0",
    "configurations": [

        {
            "name": "Python: Current File(Integrated Terminal)",
            "type": "python",
            "request": "launch",
            "pythonPath": "C:/Users/xqhu/AppData/Local/Programs/Python/Python37/python.exe",  --本地python可执行文件路径
            "program": "${file}",
            "console": "integratedTerminal"
        },
        {
            "name":"Python:Attach",
            "type":"python",
            "request": "attach",
            "port":5678,
            "host":"localhost"
        }
    ]
}

visual studio code配置python环境

原文:https://www.cnblogs.com/mwg666/p/12059509.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!