Just export this environment variable:
You might want to add it to your
~/.bash_profile (mac) or
~/.bashrc (GNU/Linux) so you never have to worry about
*.pyc files ever again
I've been doing this for months now and it makes absolutelly no difference for me.
When developing applications in my machine I don't care about any optimizations of python code, in production it will be run optimized already so, again, it makes no difference