Prohibit generate pyc file python runtime

method

Add the environment variable file in ~ / .bashrc

export PYTHONDONTWRITEBYTECODE=False

source ~ / .bashrc to load

 

 

How to delete all files from the project .pyc

find . -name '*.pyc' -delete

Guess you like

Origin www.cnblogs.com/zhaohuanhuan/p/11688955.html