Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

Python 

Tutorial: How to distribute Python files as .exe files

This is my first tutorial on Hack Forums, I hope that you enjoy it!

This is tried and tested on a Windows 10 machine with Python 3.5 installed.

Step 1:
Open up the command prompt and install pyinstaller via pip

pip install pyinstaller.

Step 2:
Once PyInstaller has successfully installed, you may CD into the directory of the file, I suggest placing it into its own folder as PyInstaller generates some extra documents.

cd <directory>
pyinstall <scriptname>.py


You're done!




“failed to create process" error

Head to your Python install folder, /scripts/ and then locate "pyinstaller-script.py"

Open it up in your text editor and add quotes around the directory, like so:

From
#!c:\program files (x86)\python35-32\python.exe

To
#!"c:\program files (x86)\python35-32\python.exe"

Save and exit, now your compile should work!
I'd remove the bottom part of your post because that will backfire on you.
(Oct 14, 2016 04:14 AM)Tommy Chong- Wrote:  I'd remove the bottom part of your post because that will backfire on you.

Aha, thanks.

I still don't know the 'unofficial guidelines' of the forum yet.


Possibly Related Threads...
Thread / Author Replies Views Last Post
[Python] by Bass_ReevesAug 20, 2023 01:44 AM 9 632 Aug 20, 2023 01:44 AM
Last Post: Lucky4L
[Python] by TheWarOwlJul 19, 2017 05:41 AM 3 130 Jul 19, 2017 05:41 AM
Last Post: SIM-1866423
[Python] by muroseuJul 6, 2016 10:22 AM 15 424 Jul 6, 2016 10:22 AM
Last Post: 05317832892