Home > other >  Use pyinstaller packaging pygame do little game, packaged success, but can not run how to solve?
Use pyinstaller packaging pygame do little game, packaged success, but can not run how to solve?

Time:10-19

Python version: 3.6.4 radar echoes captured
Pyinstaller version: 3.3.1 (has plug-ins, compatible with 3.6, there have been packaged and will be successful case of running the program)
The script was written in pygame a little game, confirmed that can run on the console
Packaged well:

Operation failed:

Where is the problem occurs? Ask the great spirit show orz orz orz...

CodePudding user response:

Packaging - c parameters, then execute the exe file command line, see the error output, solve step by step,

CodePudding user response:

Do you have any pictures? Put pictures in the program directory
To music

CodePudding user response:

Bosses reply:
Reason:
1, no pictures, music and other files into exe directory
2, programming, don't use the "r" parameter
3, music, image format is not correct, the damage
Solution:
1, pictures, music and other files into exe directory
2, will load the image with "r"
3, check the music, image format and damage

CodePudding user response:

Pyinstaller - F in D: \ Python_new practice \ \ first_file py
  • Related