Home > Article > Backend Development > How to solve the problem of python UPX is not available
Since pyinstaller uses UPX for packaging, the application was not found during packaging, resulting in Error!
Visit the UPX official website to download: https://upx.github.io, [I am using the Window 64 version], so the download is win64 compressed package!
Unzip the compressed package and obtain upx.exe
Copy upx.exe to the pyinstaller installation directory. [My pyinstaller installation directory: D:\Python\Scripts]
##Finally execute the packaging command againpyinstaller -F app.py4. Solution 2 [Uninstall pyinstaller]
pip uninstall pyinstaller
pip install pyinstaller5. Solution three
Pay attention to the error: script ‘H:\A small tool developed by python 3.7\python 3.7 Convert base64 to images in batches\app.py’ not found
Because the name of my program is base64_to_png.py, I entered the wrong name [app.py] when packaging, resulting in [UPX is not available.】Error! ! ! Directly replace app.py with base64_to_png.py!Note: Enter the name of the .py program you wrote yourself for the package, enter the name of the .py program you wrote yourself for the package, enter the name of the .py program you wrote yourself for the package! ! ! Important low-level error, remind yourself that all morning you have to do various installation and upgrades because of this error. Be careful! ! !
The above is the detailed content of How to solve the problem of python UPX is not available. For more information, please follow other related articles on the PHP Chinese website!