-
Notifications
You must be signed in to change notification settings - Fork 952
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pyinstaller installed by uv cannot work on Windows #2445
Comments
Thanks! We'll take a look. |
First step is I need to try and reproduce. Do you know if other executables installed via |
No. Pyinstaller contains other executables like |
Thanks, that makes sense, there's some issue getting the path on your machine. |
Would you mind sharing the |
Thanks. I'm not sure what's going wrong here. Running the above commands works successfully on my windows machine. I can even use your How do you run the script? Do you use powershell or CMD.exe? What's the output of running |
Powershell.
Are those error messages making sense? Normally they are not supposed to be left in |
Okay that's interesting. I can reproduce with Python 3.7.9. Python 3.8.10 works fine. I quickly glanced over the Python 3.8 changelog to see if I can spot any changes to the zip module or encoding handling but couldn't find any. The issue is also not specific to |
After speaking to @charliermarsh I was informed that Python 3.7 isn't supported. See the platform support section in the readme. Could you try using Python 3.8 or newer? |
Oh, I didn't see that earlier... Sorry for all the inconvenience. I tried Python 3.11 and uv works fine. |
No worries and you're right. |
Description:
I try to install pyinstaller using uv, the installation is successful but pyinstaller doesn't work.
(Pyinstaller installed via pip is working well).
Invoked Commands:
Expected Output:
Normal help message
Actual Output:
Verbose Log:
uv output
Addition Infomation:
During PyInstaller installation, an executable file is created and placed in the
uvenv\Scripts
directory. The executable built using pip is significantly larger (103KB) compared to the one built using UV itself (only 18KB).I investigated further by opening the PyInstaller executable (pyinstaller.exe) with a text editor and found some ASCII error messages within the file.
error in pyinstaller.exe
The text was updated successfully, but these errors were encountered: