faqts : Computers : Programming : Languages : Python : Common Problems

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

17 of 18 people (94%) answered Yes
Recently 9 of 10 people (90%) answered Yes

Entry

Can I take pyc file to different computer and will it run?

Aug 28th, 2002 23:18
Peter Funk, unknown unknown, Martin von Loewis


Sure. The Python byte code format is the same on all machine
architectures.  However it has changed from Python version to Python
version.  For example: if you create *.pyc files on a machine running
Python 1.5.2 these files will become useless on a machine with only
Python 2.x installed.  If you have several version of python installed,
you have to make sure, that the correct version is invoked.