How to create compiled files in python (py to pyc conversion)
This post explains about generating compiled files in python(py to pyc conversion).
The syntax is given as follows,
python -m py_compile file_name.py
where,
python is the executor command
-m is to represent the module
py_compile is the module to be called
file_name.py is the actual file which has to be compiled
This will create a output file like file_name.cpython.pyc
This post explains about generating compiled files in python(py to pyc conversion).
The syntax is given as follows,
python -m py_compile file_name.py
where,
python is the executor command
-m is to represent the module
py_compile is the module to be called
file_name.py is the actual file which has to be compiled
This will create a output file like file_name.cpython.pyc
No comments:
Post a Comment