方法

在环境变量文件~/.bashrc中添加

export PYTHONDONTWRITEBYTECODE=False

source ~/.bashrc加载即可

 

 

如何从项目中删除所有.pyc文件

find . -name '*.pyc' -delete

相关文章: