Compiling on XP home

Irmen de Jong irmen at
Sun Jun 8 23:01:23 CEST 2003

Tim Rowe wrote:
> I'm running Python 2.2.3 on XP Home.  I've just noticed that .pyc
> files are not being created when I execute Python scripts.  I'm
> running as administrator in my own directory, so I have write
> permission.  Does anybody know what's happening?

You have to import them instead of executing them directly:

C:\> python

won't create a script.pyc.

C:\> python -c "import script"

will :-)


More information about the Python-list mailing list