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/f0552aed-cde1-4816-81a1-57dd46b0aad5n%40googlegroups.com.