0%

VSCode+Python 环境搭建

Window 上建立python开发环境记录

环境信息

  • Windows操作系统
  • python 3.6
  • VSCode 1.46

下载并安装软件

设置 python 环境变量

系统环境变量中添加

1
PythonHome=C:\Python36

系统环境变量 Path 变量中添加

1
2
%PythonHome%
%PythonHome%\Scripts

安装VSCode python插件

修改python pip 镜像地址

Windows 环境下修改

vi ~/pip/pip.ini

1
2
3
[global]
trusted-host = mirrors.aliyun.com
index-url = http://mirrors.aliyun.com/pypi/simple

Linux 环境下修改

vim ~/.pip/pip.conf

1
2
3
[global]
trusted-host = mirrors.aliyun.com
index-url = http://mirrors.aliyun.com/pypi/simple

安装 pylint

1
pip install pylint

欢迎关注我的其它发布渠道