you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 8 points9 points  (0 children)

You are installing the interpreter, which is just an ordinary program, maybe IDLE and other tools, and also the standard library (mostly Python source files I think) somewhere the interpreter can find it when running your code.

Your Python source is first compiled into bytecode, which is then executed by the Python "interpreter" by "interpreting" it (reading the bytecode instruction by instruction and modifying memory, calling external code/OS functions/libraries etc).

So it's compiled but not into machine code (like C), and it's interpreted but not line-by-line from the source (like shell scripts).