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.
Asked
Active
Viewed 1.7k times
1

GreenCoder90
- 353
- 3
- 7
- 21
-
1Your error traceback is almost unreadable. Please edit your question and paste the error message as text. – baduker Mar 22 '18 at 09:35
-
_"C:\...\PyInstaller.exe is not recognized as an internal or external command"_ -> Have you tried entering the _correct_ path instead? – Aran-Fey Mar 22 '18 at 09:37
-
Where is PyInstaller.exe stored though as i cannot find it in the PyInstaller folder – GreenCoder90 Mar 22 '18 at 09:38
-
I have found the executable – GreenCoder90 Mar 22 '18 at 09:41
-
Will try this again – GreenCoder90 Mar 22 '18 at 09:41
-
Try to run `pip install pyinstaller` to install pyinstaller. – Gsk Mar 22 '18 at 09:41
-
Ok. The error I am getting now is "pyinstaller-script.py: error: the following arguments are required: scriptname" But if my project folder contains 37 files, what do I do?, what script do I specify? – GreenCoder90 Mar 22 '18 at 09:47
-
What i need to do is put all the listed files in the cmd snippet above into 1 executable. – GreenCoder90 Mar 23 '18 at 15:40
1 Answers
1
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

Fasertio
- 29
- 5