Home > other >  Pyinstaller package but cannot run successfully
Pyinstaller package but cannot run successfully

Time:02-23

Understanding pyinstaller isn't too, at the time of testing wrote a simple two lines of code, and then packing, found that can successfully packaged, but running exe appear problem,

Calc. Py file code below

 
the import the OSOS. The system (' calc)


Directly execute the script is no problem, but after packaged into exe cannot normal popup calculator, also caused the death cycle error,
Then try to adjust the code below

 the from OS import system 
System (' calc)


Then it can be packaged success, although there is no dead loop error, but still can't popup calculator, in a state of suspended animation,
Have understand bosses hope to answer,
  • Related