Thursday 8 November 2018

Compile Python File

python -m compileall <file_1>.py <file_n>.py

The compiled “.pyc” file will be available with suffixed name
Copy the file in the parent folder.
Rename it as required with “.pyc” extension

Run the file as usual with python command

No comments:

Post a Comment