Edit the ‘site-packages/usercustomize.py
‘ and add this code:
import sys sys.dont_write_bytecode = True |
to make this apply to all your scripts.
For me this directory was
~/.virtualenvs/{my-envs}/lib/python2.7/site-packages |
but I had to create ‘usercustomize.py
‘ because it didn’t exist.