Bottom Page

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 I love the simplicity of Python but have a question
#1
Can Python code be compiled as an EXE say to run inside a Win Console window?

Jeff
Quote
#2
yes you can with numerous tools. PyInstaller has probably become the best lately.
https://python-forum.io/Thread-Building-...ith-Py2exe
Quote
#3
It's not exactly compiling, but there are applications that can create an .exe out of a Python program.
metulburr likes this post
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures

Quote
#4
Yes,probably the best today is pyinstaller work Python 3.7.
There are several other,but eg py2exe did stoop develop at Python 3.4.
pynsist is packed a installer,also a GUI installer window with the normal next --> next until installed.
Quote
#5
Quote:It's not exactly compiling, but there are applications that can create an .exe out of a Python program.

How do they do that? For instance Python allocates enough memory to store a number (correct me if I'm wrong) as it gets it at runtime.

But if it were compiled, and I type a 90 digit number then the code would break..
Quote
#6
The executable binary file includes the interpreter and dependencies, if you prefer a one-file-executable. The interpreter runs the embedded Source Code or Byte Code.
It's still dynamic typed.
My code examples are always for Python >=3.6.0
Almost dead, but too lazy to die: https://sourceserver.info
All humans together. We don't need politicians!
Quote
#7
Python, initially seems to bo the language I wish to learn. Just want to be able to share code(program) with another user who doesn’t have to execute a scrip with python on their computer.

I have a need to develop utility style programs to work with computations that output to simple text files.

Jeff
Quote

Top Page

Possibly Related Threads...
Thread Author Replies Views Last Post
  A question about python in Raspberry Psycopast 3 81 Aug-14-2019, 06:36 PM
Last Post: buran
  Basic coding question with Python Than999 3 664 Jul-17-2019, 04:36 PM
Last Post: jefsummers
  Newb question: Debugging + Linting Python in Visual Studio Code Drone4four 1 197 Apr-15-2019, 06:19 AM
Last Post: perfringo
  QueueHandler question (new to Python) Templar 3 1,593 Jan-22-2019, 12:34 AM
Last Post: scidam
  Trivial novice question: information gathering tools in Python Drone4four 1 401 Nov-10-2018, 01:41 AM
Last Post: Larz60+
  Absolute Beginner Python Question matchamochi7 5 613 Nov-02-2018, 12:09 PM
Last Post: wookie
  Python Looping Gurus, question for you,... pcsailor 5 533 Sep-19-2018, 06:19 AM
Last Post: pcsailor
  Python 2 Unicode question Skaperen 2 472 Sep-08-2018, 06:44 AM
Last Post: Skaperen
  Python with LED light strip question. Ostromaj 5 630 Aug-07-2018, 09:06 PM
Last Post: Ostromaj
  Maya Python Noob Question Iurii_Ledin 2 605 Jun-08-2018, 09:09 PM
Last Post: Iurii_Ledin

Forum Jump:


Users browsing this thread: 1 Guest(s)