VSCODE+Python下载与环境搭建(简化版)

编程知识 更新时间:2023-04-06 18:07:21

以Python3.64为例,Python2.x略有不同

Python下载/安装:

1、官网下载VSCODE: https://code.visualstudio/

2、官网下载Pyhon: https://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下载与环境搭建(简化版)

本文发布于:2023-04-06 18:07:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/039ac16d835d4a719514e4cc6ecc5407.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:简化版   环境   VSCODE   Python

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!

  • 50243文章数
  • 14阅读数
  • 0评论数