How to create Standalone PYC File

Rohan Hole rohanhole31 at
Wed Mar 4 20:38:43 CET 2009

I have .py file which uses some third party modules like egg files, like
simplejson and python-twitter ,

----- start of file  -----

import ConfigParser
import getopt
import os
import sys
import twitter

when i compile this py file using compile module , i get .pyc file . Now my
question is , if i run .pyc file on another computer containing only python
installed , will it run ? or do i need to install 3rd party lib again on
that computer ? Anyone know how to make program lib independent , something
called embedded into one file only ?

thank you in anticipation .

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the Python-list mailing list