How to not generate .pyc files in Python

.pyc files are created by the Python interpreter when a .py file is imported.

Solution for How to not generate .pyc files in Python : You can use sys.dont_write_bytecode to not generate .pyc files Set sys.dont_write_bytecode to True to not generate .pyc files when a .py file is imported.


how-to-not-generate-pyc-files-in-python