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
Release: 2023-04-20 09:13:06
forward
2734 people have browsed it

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
Copy after login

2. [Reinstall pyinstaller]

pip install pyinstaller
Copy after login
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!

Related labels:
source:yisu.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template