If you want to avoid creating Python-compiled files altogether, you can set an environment variable, PYTHONDONTWRITEBYTECODE=1, in your .bash_profile, env/bin/activate script, or PyCharm configuration.