一、實驗環境
1.Windows10x64
2.anaconda4.6.9 + python3.7.1(anaconda集成,不需單獨安裝)
二、安裝autopep8
cmd窗口輸入:
pip install autopep8
三、在Pycharm中安裝autopep8配置
配置項目
- Name:Autopep8(可以隨便取)
- Tools settings
- Programs:autopep8
- Parameters:--in-place --aggressive --aggressive $FilePath$
- Working directory:$ProjectFileDir$
- 點擊Output Files→添加,在對話框中的:Regular expression to match output中輸入:
$FILE_PATH$\:$LINE$\:$COLUMN$\:.*