Copy the build script to another location and specify the path to it in PyInstaller.
среда, 14 октября 2020 г. в 09:49:11 UTC+3, [email protected]: > I encountered a strange problem when using py packaging. > > I use pycharm to develop a project called `*deploy*` on windows10. ` > *deploy*` contains two program files with the same content and different > names: `*main.py*` and `*deploy.py*`. I used *pyinstaller -F* to package > these two files separately to get `*main.exe`* and `*deploy.exe*`, where ` > *main.exe*` can run normally, but `*deploy.exe*` crashes after running. > There is no error message when running `*deploy.exe*` in powershell, just > exit directly. > I have tried to recreate *venv* and other methods to clean up the > environment, and simplify the code to output only one line of characters, > but the result is the same. > Below is the code of *main.py*/*deploy.py*: > if __name__ == '__main__': > input('bye') > print("bye") > > I am not sure whether it is caused by the environment or a bug in > pyinstaller? > -- You received this message because you are subscribed to the Google Groups "PyInstaller" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/pyinstaller/a29c137a-5fac-4117-9fb6-273d11e15a25n%40googlegroups.com.
