How to create Standalone PYC File

Rohan Hole rohanhole31 at gmail.com
Wed Mar 4 14:38:43 EST 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 .

Rohan.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20090305/83dbcc24/attachment.html>


More information about the Python-list mailing list