About 54 results
Open links in new tab
  1. Is it possible to compile a program written in Python?

    python is an interpreted language, so you don't need to compile your scripts to make them run. The easiest way to get one running is to navigate to it's folder in a terminal and execute "python …

  2. compilation - Why compile Python code? - Stack Overflow

    The advantage of running a .pyc file is that Python doesn't have to incur the overhead of compiling it before running it. Since Python would compile to byte-code before running a .py file anyway, there …

  3. compiling - How to compile a python file? - Ask Ubuntu

    Jul 27, 2013 · 30 Also be aware that you don't need to compile a .py file to run it. Python is an interpreted language, and you can run the scripts directly, either using: python hello.py Or make your …

  4. How to compile Python code into byte code and then run it?

    Aug 24, 2023 · 0 Don't execute your result bytecode. Execute compiled code as an object returned by compile function like this:

  5. How can I make a Python script standalone executable to run without …

    Jan 24, 2017 · I'm building a Python application and don't want to force my clients to install Python and modules. So, is there a way to compile a Python script to be a standalone executable?

  6. Compiling Python - Stack Overflow

    Sep 16, 2009 · 8 Python is an interpreted language, so you don't need to compile it; just to run it. As it happens, the standard version of python will compile this to "bytecode", just like Java etc. does, and …

  7. python - How can I manually generate a .pyc file from a .py file ...

    Jul 31, 2016 · When executed in the windows console as python compile.py cheat.py produces a file called cheat.pyc and prints the following in the console. The you can just type cheat.pyc to execute it …

  8. Is there a way to compile a python application into static binary?

    There's (in theory) a way to build python itself statically. I wonder if I could pack interpreter with my code into one binary and run my application as module. Something like that: ./mypython -m myapp run or …

  9. Is it feasible to compile Python to machine code? [closed]

    Sep 26, 2008 · How feasible would it be to compile Python (possibly via an intermediate C representation) into machine code? Presumably it would need to link to a Python runtime library, and …

  10. Compile main Python program using Cython - Stack Overflow

    Feb 24, 2011 · The only way I've managed to get a full-blown python+Pyside application to compile as above, was to develop the program in the normal fashion - lots of include <mymodule> statements + …