在VScode配置python只要有以下几步:
- 安装python
- 安装python代码分析工具(pep8、flake8、pylint等)
- 安装代码自动格式化工具
- 安装VScode自带的python插件
- 安装python
- python官网下载可执行文件(.exe)
- 我的安装路径是:
E:/software/python
接下来将python的安装路径配置到VScode的调试配置文件launch.json中
{
"name": "Python",
"type": "python",
"request": "launch",
"stopOnEntry": false,
//"pythonPath": "E:/software/python",
"python.pythonPath"