About 58 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

    Jan 22, 2009 · 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 …

  3. How to compile python script to binary executable

    Sep 9, 2012 · 0 12 years after the question; To let the newcomers know, PyInstaller DOES NOT compile Python programs into machine code per se; rather, it creates an executable program that contains a …

  4. 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 …

  5. Compiling Python - Stack Overflow

    Sep 16, 2009 · 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 …

  6. 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?

  7. Is Python interpreted, or compiled, or both? - Stack Overflow

    In addition, there are C interpreters and projects that attempt to compile a subset of Python to C or C++ code (and subsequently to machine code). Second, compilation is not restricted to ahead-of-time …

  8. 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 …

  9. 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:

  10. 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 …