After compiling a in unix-working python file using
import py_compile py_compile.compile(\'server.py\')
I get the .pyc file in the same directo
Run the first command to generate the server.pyc file. Then the second command can run the server.pyc module. The -c option and -m option are described in the python docs.
python -c "import server" python -m server