Last Updated: February 25, 2016
·
5.693K
· orangejulius

Stop python from creating .pyc files

Dev environment filled with .pyc files? Set an environmental variable to turn off pyc file generation

echo "PYTHONDONTWRITEBYTECODE=true" >> ~/.bash_profile

http://docs.python.org/2/using/cmdline.html#envvar-PYTHONDONTWRITEBYTECODE

1 Response
Add your response

but there is a reason for those files...
normally you want that written bytecode, so i find it better to just insert a single line into gitignore or the likes.

over 1 year ago ·