
Welcome to py2pyc wiki.
You may be wondering how to use py2pyc.
First go to here:
py2pyc Files
Go into the latest version folder and download the one appropriate to your Python version.
Now extract it. And you will get a folder 'py2pyc-vX.X-PythonX.X' (X is the version number). I will assume that you are using Python 2.7 and py2pyc-v1.0. So in this case the folder will be 'py2pyc-v1.0-python2.7'. Now in the folder you will see 3 files. 1) "LICENSE.txt" 2) "README.txt" and 3) "py2pyc-v1.0-python2.7.pyc". Copy the "py2pyc-v1.0-python2.7.pyc" file and paste it in the folder where your .py files exist and want to compile it. Run it and you'll see a window like the one below:

Now if you want to compile a single file for example, filename.py. Enter the function number "2" or type in "compile".

Now enter your filename and press enter. In my case its hello.py. And you will see your file compiling.
After the process is done, you will get filename.pyc in the same folder (If you use Python 3.2 there will be a pycache folder, in which the .pyc file will lie.).


If you want to compile multiple (all files in the directory), enter the function number "1" or type in "compile all". It will compile all the .py files in the current folder.


(Again for Python3.2 there will be a pycache folder.)