VSCODE+Python下载与环境搭建(简化版)
2018-02-22 19:49
976 查看
以Python3.64为例,Python2.x略有不同
Python下载/安装:
1、官网下载VSCODE: https://code.visualstudio.com/ 2、官网下载Pyhon: https://www.python.org/downloads/ 64位系统选择:Windows x86-64 executable installer即可
3、下载完后,勾选Add to Path, 同时最好选择自定义位置,以免默认路径出现中文。
安装成功后,系统Path应该有两个Python的Path,分别为python、python\Scripts的Path.
同时,cmd中分别直接运行Python与Pip应该都能被识别。
4、安装格式检查模块:Pip Install flake8
5、VSCODE安装扩展(Ctrl+Shift+X)选择扩展名为:Python
6、VSCODE中进行基本的配置:文件(F)->首选项(P)->设置(S)中进行覆盖性设置
// Path to Python, you can use a custom version of Python by modifying this setting to include the full path.
"python.pythonPath": "C:/Python36/python",
//while to lint Python files using flake8
"python.linting.flake8Enabled": true,
//Provider for formating
"python.formatting.provider": "yapf",
"editor.renderIndentGuides": false,
"editor.accessibilitySupport": "on"其中pythonPath填写刚才Python安装的目录
Python下载/安装:
1、官网下载VSCODE: https://code.visualstudio.com/ 2、官网下载Pyhon: https://www.python.org/downloads/ 64位系统选择:Windows x86-64 executable installer即可
3、下载完后,勾选Add to Path, 同时最好选择自定义位置,以免默认路径出现中文。
安装成功后,系统Path应该有两个Python的Path,分别为python、python\Scripts的Path.
同时,cmd中分别直接运行Python与Pip应该都能被识别。
4、安装格式检查模块:Pip Install flake8
5、VSCODE安装扩展(Ctrl+Shift+X)选择扩展名为:Python
6、VSCODE中进行基本的配置:文件(F)->首选项(P)->设置(S)中进行覆盖性设置
// Path to Python, you can use a custom version of Python by modifying this setting to include the full path.
"python.pythonPath": "C:/Python36/python",
//while to lint Python files using flake8
"python.linting.flake8Enabled": true,
//Provider for formating
"python.formatting.provider": "yapf",
"editor.renderIndentGuides": false,
"editor.accessibilitySupport": "on"其中pythonPath填写刚才Python安装的目录
相关文章推荐
- 在VS Code上搭建Python开发环境的方法
- VSCode下Python环境搭建
- VSCode python环境运行搭建
- 在VS Code上搭建Python开发环境
- VSCode Python开发环境搭建
- 搭建vscode的c++环境
- Qt资源下载及VS环境搭建
- caffe搭建--vs2015+caffe+python3.5编译环境的搭建
- VS Code配置多Python版本运行环境
- Ubuntu下VSCode的Python运行调试环境的配置
- Python-----下载安装环境搭建以及初始化程序实现
- Win7环境下搭建Go开发环境(基于VSCode编辑器)
- VS2010 上面搭建Python环境
- 【VS2013】C语言调用Python脚本环境搭建、函数调用和调用demo.py脚本an
- 基于VS2015 X64的boost.python环境搭建
- 如何在VScode中配置Python的交互式环境
- Anconda环境下Vscode安装Python
- VS2013中Python学习环境搭建