I am trying to convert a script to an executable with pyinstaller, but pyinstaller won't work.
I've tried installing it for 3.8 and 3.7, but neither works. How do I know what versions pyinstaller is available for, or what am I doing wrong? It just tells me that there is no command called pyinstaller.
Commands I tried:
pyinstaller --onefile main.py
pyinstaller.exe --onefile main.py
py -3 pyinstaller --onefile main.py
py -3 pyinstaller.exe --onefile main.py
py -3.7 pyinstaller --onefile main.py
py -3.7 pyinstaller.exe --onefile main.py
py -3.8 pyinstaller --onefile main.py
py -3.8 pyinstaller --onefile main.py
If on Unix-like OS (Linux, *BSD, probably MacOS): https://superuser.com/questions/1310800/pyinstaller-command-not-found
If pip says the module is installed, the binary is somewhere on your system. On most *nix systems, you can use the find
command. On windows, the where
command should do something similar . Once you find it, you can create a symlink or copy it to a directory where you or the OS can find and run it.
If pip is having trouble installing it, that's a completely different issue. If the above solution doesn't work, paste the output of pip install pyinstaller
into a new question about pip failing to install pyinstaller rather than the OS being unable to find pyinstaller.
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.