简体   繁体   中英

how can i solve this pyinstaller issue?

iam a new python coder so iam still learning. i coded a simple gui python calculator and I am trying to transform my python file of code to.exe file using pyinstaller from how I saw online.i had no problems with installing pyinstaller but when I write the following ( pyinstaller --onefile -w simplecalculator.py) at cmd i get this:

C:\Users\sony vaio 2012>pyinstaller --onefile -w simplecalculator.py
120 INFO: PyInstaller: 4.1
120 INFO: Python: 3.9.0
120 INFO: Platform: Windows-10-10.0.19041-SP0
128 INFO: wrote C:\Users\sony vaio 2012\simplecalculator.spec
128 INFO: UPX is not available.
script 'C:\Users\sony vaio 2012\simplecalculator.py' not found

I don't know what does that mean and also I am very sure there is no problems with the file name. I changed it multiple times but idk why it is saying not found thanks...

I recommend you try use py2exe, just need to create a setup.py file with few especifications.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM