admin管理员组文章数量:1794759
VSCODE+Python下载与环境搭建(简化版)
以Python3.64为例,Python2.x略有不同
Python下载/安装:
1、官网下载VSCODE: code.visualstudio/
2、官网下载Pyhon: www.python/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安装的目录版权声明:本文标题:VSCODE+Python下载与环境搭建(简化版) 内容由林淑君副主任自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.xiehuijuan.com/baike/1686911674a117378.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论