Python inclusive executable - python

I am struggling with creating .exe or similar formatted files with my python 3.6 project. I have success with creating an exe using pyinstaller, but it requires me to have installed the module pymysql separately and to include the icon.ico file in the same directory as the new application.
How would I go about creating a standalone executable that not only stores the icon.ico used for the program title icon, and including the pymysql module as well as seperate .py files?
I've tried using different arguments within pyinstaller, and I've looked at py2exe but this doesn't seem to support python 3.6.

Related

How to convert a python script .py file into an exe without embedding python interpreter in it

My requirement is to deploy a python script in a form of exe with digital signature but the python interpreter and dependent python modules should not be embedded into the exe. Rather, python needs to be explicitly installed on the server.
I have tried pyinstaller and cx_freeze but both embeds python and related modules along with the script codebase into the exe. We need to decouple python and script codebase.
You can use py2exe and use Cython to convert your key .py files in .pyc, C compiled files, like .dll in Windows and .so on Linux.
Alternatively, you can use PyInstaller to package Python programs as standalone executables. It works on Windows, Linux, and Mac.

Creating an executable from a Pycharm Python Project

How can I take all scripts and files in my Python project directory and create a single executable. I have tried using this: How do I create an executable file out of a PyCharm project using PyInstaller? but it does not work. I have developed the project in PyCharm and I am using Python 3.4.
You can use cx_Freeze it's the same way that py2exe and py2app. It supports python 2.7 or highter or you can use Pyinstaller that binds in an executable all the stuff.
You can download it using the following command:
pip install pyinstaller
Or you can download it from the website

Turning a development environment into an executable

I have a virtual environment that has one main tkinter script, 16 python file, 5 text files, 3 PNG files and a subdirectory where PDFs will be saved. How in the world can I make a exe with all these files so that I can move it onto another computer without any of the dependencies or files installed on it?
I have tried pyinstaller but I get a fatal error when I attempted to run the exe.
How can I create one functional exe? The code is in Python 3.6.

How do I make an exe file from a python code under Ubuntu?

I'm using Ubuntu 16 64-bit and python 3.5
I made a program on python and I want to distribute it as an EXE for Windows users.
The program I made depends on pandas and matplotlib
I downloaded PyInstaller.tar.gz and extracted it, but I can't find any clear info on how to make make an EXE.
I tried
python ../PyInstaller/pyinstaller.py --onefile ../Project/program.py
But it creates a sub folder with a lot of files and none of them are exe

python GUI to EXE with image and modules

I have created a Python GUI and trying to convert it to .exe with py2exe.
i am using following modules wx,matplotlib,numpy,time,serial,random and a .ico image as logo.
i tried create a setup.py file but it didn't work.need help creating setup file to generate .exe of my GUI.
It would be convenient if you could provide some details regarding why the .EXE is not being created. If you can't provide the details then please go through these questions on Stackoverflow, they maybe helpful:
How to build a python package into an exe
Making a standalone .exe file of a python script
Compiling python code into a single exe
Convert Python Script to .exe that will work on all/most versions of Windows
The best thing is to first refer to the official documentation!

Categories