Good day! Tell me, please, I have a couple of questions ...

  1. Is it possible to compile code written under Python into an executable file?
  2. Is Python suitable for writing programs that work with the Internet (for example, website promotion)?
  3. Is it possible to make a graphical interface in Python?

Thanks in advance:)

    3 answers 3

    1) Any program can not be compiled, only written specifically for the compiler, for example, psyco
    2) Yes, dig towards cgi & web
    3) Yes, for example, PyQt , wxPython

    • py2exe is still there - FoxManiac

    I will answer briefly, let the experts add:
    1. Yes, it is possible, google prog Py2Exe (it seems so called)
    2. I don’t quite understand how writing programs is connected with site promotion, but you can write sites on python - use Django
    3. Of course, PyQt to help you!

    • Py2Exe exactly compiles, but does not add the interpreter to the bytecode? - Ilmirus
    • It seems to do both, although I can drive a lot) - metazet
    • 2
      adds, adds ... sews, one might say, the compiler in the executable. like most of this kind of program. - FoxManiac
    • There are no compilers in Py2exe and others like it, it packs the used libraries and the interpreter into the archive, creating a pseudo-executable file. At the start, this pseudo-exe transfers control to the interpreter. You can verify this by looking at how much memory the program eats. For example, TortoiseHG, written in Python + PyQT (the graphical shell for Mercurial), in the inactive state eats 50 MB of memory. - Andrei Basalyga
    1. If you have Python version 3, then py2exe will not help you. You need cx_freeze (If all the same it - let me know and I will write you detailed instructions)
    2. Great fit
    3. PyQT, as mentioned earlier :)