Run script written in Python on windows (No python installed)

2

I have a script written in Python (3.6) that works normally if run on my PC (which has Python installed)

My question is: If I run it on some other windows that do not have python installed, will it run normally? And if it does not work, is there any way to make it run without having to install python on other windows?

    
asked by anonymous 28.06.2017 / 00:36

2 answers

4

You can "package" python along with your script, by your question, it seems to me that the most appropriate would be a "python compiler", two interesting options are:

Nuitka:

TL; DR
Nuitica is a python compiler, compatible with Python 2.6, 2.7, 3.2, 3.3, 3.4, and 3.5 You feed it with your python application and it does the "magic" by converting the app into an executable.

PyInstaller:

PyInstaller is a program that "packages" python applications into a standard executable in the Windows, Linux, Mac OS X, FreeBSD, Solaris, and AIX environments. Its main advantage over competitors: it supports Python versions from 2.7 to 3.5, and thanks to the transparent compression technique, it creates small executables.

    
28.06.2017 / 01:02
0

One solution would be for you to distribute along with the executable some files needed to run Script on Windows. You can get these files by downloading the embedded package from the Python downloads page: clicking here . In the file that will be downloaded, there are several other files, but for your need you can leave only the three files that would be: python.exe , python36.dll , python36 .zip

I hope I have helped.

    
28.06.2017 / 01:05