Home >Backend Development >Python Tutorial >How to solve the problem of python UPX is not available

How to solve the problem of python UPX is not available

WBOY
WBOYforward
2023-04-20 09:13:062728browse

1. Error report

How to solve the problem of python UPX is not available

2. Error reason

Since pyinstaller uses UPX for packaging, the application was not found during packaging, resulting in Error!

3. Solution 1

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!

How to solve the problem of python UPX is not available

Unzip the compressed package and obtain upx.exe

How to solve the problem of python UPX is not available

Copy upx.exe to the pyinstaller installation directory. [My pyinstaller installation directory: D:\Python\Scripts]

How to solve the problem of python UPX is not available

How to solve the problem of python UPX is not available

##Finally execute the packaging command again

pyinstaller -F app.py

How to solve the problem of python UPX is not available

4. Solution 2 [Uninstall pyinstaller]

pip uninstall pyinstaller

2. [Reinstall pyinstaller]

pip install pyinstaller

5. 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

How to solve the problem of python UPX is not available

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!

Statement:
This article is reproduced at:yisu.com. If there is any infringement, please contact admin@php.cn delete