本地环境变量相关
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
网友评论