Where is my _pycache_ folder and .pyc byte code files?

The directory is called __pycache__ (with double underscores). It’ll only be created if Python has permission to create a directory in the same location the .py file lives. The folder is not hidden in any way, if it is not there, then Python did not create it. Note that .pyc bytecode cache files are only created for modules your code imports; it is not created for the main script file. If you …

https://stackoverflow.com/questions/24291779/where-is-my-pycache-folder-and-pyc-byte-code-files