美文网首页
VSCode 设置Python默认编译器

VSCode 设置Python默认编译器

作者: 过桥 | 来源:发表于2019-12-03 13:40 被阅读0次

    本地环境变量相关

    1、拷贝Python2.7文件夹下 python.exe 为 python2.exe
    2、添加Python2.7文件夹路径至环境变量
    3、cmd 分别测试 python、python2指令,保证其进入版本正确
    

    设置 VSCode编译器

    1、文件
    2、首选项
    3、设置
    4、查找 Python Path
    

    设置为Python2编译

    Python: Python Path
    Path to Python, you can use a custom version of Python by modifying this setting to include the full path.
    python2
    

    设置为Python3编译

    Python: Python Path
    Path to Python, you can use a custom version of Python by modifying this setting to include the full path.
    python
    

    相关文章

      网友评论

          本文标题:VSCode 设置Python默认编译器

          本文链接:https://www.haomeiwen.com/subject/hqycgctx.html