Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to solve the problem that pyinstaller3.6 version failed to install through pip

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

This article introduces the knowledge about "how to solve the problem of pyinstaller3.6 failed installation through pip". In the actual case operation process, many people will encounter such difficulties. Next, let Xiaobian lead you to learn how to deal with these situations! I hope you can read carefully and learn something!

The original pyinstaller version of this machine is version 3.5. I was going to upgrade it through pip install --upgrade pyinstaller, but it actually reported an error. Later, uninstall and reinstall also reported an error. It seems that it cannot be installed temporarily through pip.

The following explains how to install the source code, first download the source code corresponding to version 3.6 from pypi.org https://pypi.org/project/PyInstaller/#files

After downloading, if it is win10 operating system, be sure to package the command window in the way of administrator, otherwise it will prompt the problem of insufficient permissions, for example, I put the source code into E disk, switch to the path where the source code is located first, and then execute

python setup.py install

This will start the installation, and then through pip show pyinstaller, it shows exactly correct, so the installation of this module is completed.

PS: Python install pyinstaller method

When writing scripts in python and sending them to others, I always think of how to package them into exe files and send them to each other. In this case, the other party can use it directly without installing Python. So look at the tutorials online, most of which guide you to install pyinstaller.

It usually instructs you to install, use pip install, pip install pyinstaller ---pip is indeed a wonderful tool, and it does try very hard to install the software you need. However, if you are using Python version 3.6, congratulations, you will install successfully. However, if it is lower than version 3.6, the installation is called a pain. Or error download failed, or error compilation failed, or error missing pypiwin32...

If you're lucky, you might be able to install it successfully. If you're unlucky, like me, it takes a week...

A week of toiling, or have results, found a good way to install pyinstaller. No nonsense, if you are below version 3.6 of python,

First execute command: pip install -U pip, upgrade the pip version first, because I found that the pip version of python3.6 version is also high, and can install pyinstaller very smoothly.

After upgrading pip, execute the command: pip install pyinstaller , as long as the network speed is not bad, wait for the installation to succeed.

"How to solve the pyinstaller 3.6 version through pip installation failure problem" content is introduced here, thank you for reading. If you want to know more about industry-related knowledge, you can pay attention to the website. Xiaobian will output more high-quality practical articles for everyone!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report