@
@
@defolking2020-07-23 12:27:20
Python
@defolking, 2020-07-23 12:27:20

Is it possible to run a python program on a computer without an interpreter installed?

Good day, friends!

At work, the idea came up to write a program for communicating with a PLC (programmable logic controller) using the modbus protocol. But I have no experience in developing such programs, but I have a desire to learn Python. After a little googling, I found that such a program can be implemented in Python.
Python is not a compiled language, and there is a need to supply this program to the customer. And most likely there may be problems installing the interpreter on the customer's computer. He simply doesn't need it.

Actually a question. Is it realistic to wrap the python code in some kind of .exe file so that the user can simply run this exe file and not have to load the computer with an interpreter as well?
Or do you still have to use a compiled language for this? Or somehow in conjunction with some kind of language?
You can throw slippers, because you want to understand this issue.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
R
Ronald McDonald, 2020-07-23
_

Actually a question. Is it realistic to wrap the python code in some kind of .exe file so that the user can simply run this exe file and not have to load the computer with an interpreter as well?

Can. Google on "python to exe", hemorrhoids, the executable will be huge, not the fact that it will work fine, plus it will slow down (like everything on Piston), but there are chances.

V
Vladimir Korotenko, 2020-07-23
@firedragon

Communication with the plc goes through the driver, in the system it looks like a com port, so use any language, for example c ++ and atl (wtl)

O
organica, 2020-07-24
@organica

I wrote a stray in python for my work, but the network infrastructure was closed and there were no admin rights to install the interpreter. I packed everything into an exe using pyinstaller and the program works great to this day

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question