Hello everyone,
I have looked through so many online guides, blogs, and tons of questions on Stackexchange and so, but I can't seem to find an answer. Now I've come here, hope you guys can help.
First off, I am not new to python, but I am new to command line and creating .exe files.
What I want to do: Create .exe file from a .py file with PyGame
I have the game directory Simple Race. race1.py is my main file. images is a folder containing all images used for the game. Runs using PyGame Zero, newest version of Python (3.7.x??). I want to create an application for Windows so I can run the game without opening IDLE and such, also for sharing the game.
Using pyinstaller --onefile race1.py in my Simple Race directory has I believe not worked. When I run, a terminal window (blank) opens.
So how do I create a .exe file in this scenario? Does someone have a simple answer, or can someone at least explain the necessary steps I would use in my case.
Here are some photos of my scenario:
Simple Race directory:
![[Image: annotation2020-03-122y5ke4.png]](https://abload.de/img/annotation2020-03-122y5ke4.png)
Inside Simple Race:
![[Image: image.php?img=annotation2020-03-1221fjm9.png]](https://abload.de/image.php?img=annotation2020-03-1221fjm9.png)
Inside images:
![[Image: image.php?img=annotation2020-03-122e8kgq.png]](https://abload.de/image.php?img=annotation2020-03-122e8kgq.png)
When running the .exe that I created using pyinstaller:
![[Image: image.php?img=annotation2020-03-122ffjfy.png]](https://abload.de/image.php?img=annotation2020-03-122ffjfy.png)
[EDIT]: The last three images do not work! Please double click on the broken image icon to get the image to display!!
Thank you so much!
I have looked through so many online guides, blogs, and tons of questions on Stackexchange and so, but I can't seem to find an answer. Now I've come here, hope you guys can help.
First off, I am not new to python, but I am new to command line and creating .exe files.
What I want to do: Create .exe file from a .py file with PyGame
I have the game directory Simple Race. race1.py is my main file. images is a folder containing all images used for the game. Runs using PyGame Zero, newest version of Python (3.7.x??). I want to create an application for Windows so I can run the game without opening IDLE and such, also for sharing the game.
Using pyinstaller --onefile race1.py in my Simple Race directory has I believe not worked. When I run, a terminal window (blank) opens.
So how do I create a .exe file in this scenario? Does someone have a simple answer, or can someone at least explain the necessary steps I would use in my case.
Here are some photos of my scenario:
Simple Race directory:
![[Image: annotation2020-03-122y5ke4.png]](https://abload.de/img/annotation2020-03-122y5ke4.png)
Inside Simple Race:
![[Image: image.php?img=annotation2020-03-1221fjm9.png]](https://abload.de/image.php?img=annotation2020-03-1221fjm9.png)
Inside images:
![[Image: image.php?img=annotation2020-03-122e8kgq.png]](https://abload.de/image.php?img=annotation2020-03-122e8kgq.png)
When running the .exe that I created using pyinstaller:
![[Image: image.php?img=annotation2020-03-122ffjfy.png]](https://abload.de/image.php?img=annotation2020-03-122ffjfy.png)
[EDIT]: The last three images do not work! Please double click on the broken image icon to get the image to display!!
Thank you so much!