Will users be able to open my program without loading Python?

I am doing a python program, but as soon as I finish the program, will users load the python environment to use my program or will it work without the python environment after compilation? Also, will it be automatically cross-platform or will I have to download a conversion program to make it work for Linux, Mac OS and Windows? I'm new to the language, so that bothers me.

+4
source share
4 answers

Many Linux systems come with Python already installed. However, there are some tools that will help if this is not the case:

+11
source

Take a look at py2exe for Windows, Linux, and Mac, probably pre-installed it.

+1
source

They will need a python interpreter to use your program if you don't turn your python script into a Windows executable. One way to do this is to use Py2exe

+1
source

It depends on which third-party libraries you include in your program.

For example, I never managed to create a Windows executable with PyQt lib using py2exe. But that was 2-3 years ago, and everything could change.

Also, do not create hard codes in your program and use functions such as os.path.join

Do not make assumptions about configuration files, etc. Check the runtime of the platform; your program works and acts accordingly.

In general, your biggest problem will be the Windows platform.

+1
source

Source: https://habr.com/ru/post/1438267/


All Articles