1) 去官网下载个安装包,一直下一步就能够了。python
2) 结束后去环境变量里面配置一下,把Python的安装路径添加一下, ["系统变量"->Path]中"C:\Python27"。ui
1)去官网下载个压缩包以后,cmd进入包内,python setup.py install进行安装,若是没有python命令,参照步骤0url
https://pypi.python.org/pypi/pipspa
##若是须要使用本地的源的话,在c:\Users\XXX 目录下新建个pip文件夹,而后新增 pip.ini文件,写入如下内容code
[global] timeout = 6000 index-url = http://xxxxxx.com/pypi/simple trusted-host = xxxxxx.com [install] use-mirrors = true mirrors = http://xxxxxx.com/pypi
##安装依赖包:pip install -r requirements.txtblog
pip install flake8
1) 打开pycharm->File->Settings->Tools->External Tools,而后点右边绿色+号,ip
2) 配置:Name:flake8,rem
Program:默认应该是"C:\Python27\Scripts\flake8.exe"pycharm
Parameter:$FilePath$cmd
Working directory:这个应该会自动补齐的。
3:) 而后一路保存就能够了
1) 打开须要进行check的代码,右击选External Tools,而后Flake8(上面本身设置的名字)。
2) 若是没有错误的话,会报"Process finished with exit code 0",若是有错的话,就按照错误提示去改了,改完再执行一把。
以上