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

PyInstaller Library installation

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

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

The PyInstaller library can package code written in python language into exe files that can be executed directly, making it easy to operate on windows systems.

1. System environment: python version Python 3.6.4

2. Pip install pyinstaller reports an error:

Command "d:\ anaconda35\ python.exe d:\ anaconda35\ lib\ site-packages\ pip_vendor\ pe

P517_in_process.py get_requires_for_build_wheel C:\ Users\ Public\ Docu

Ments\ Wondershare\ CreatorTemp\ pip-req-build-2jmqy8ou

3. Solution:

Because pyinstaller depends on pywin32, you need to install the package before installing it.

D:\ python-install\ Scripts > pip install pywin32

Download the installation package PyInstaller-3.4.tar.gz on the official website

Http://www.pyinstaller.org/downloads.html

Unpack it and put it in the python installation directory

Execute: python setup.py install under the installation directory

D:\ python-install\ PyInstaller-3.4 > python setup.py install

Check the appropriate version after successful installation.

D:\ python-install\ PyInstaller-3.4 > pyinstaller-- version

3.4

4. Cmd the command line to view the command

C:\ Users\ > pyinstaller-h

Usage: pyinstaller [- h] [- v] [- D] [- F] [--specpath DIR] [- n NAME]

[--add-data]

[--add-binary] [- p DIR]

[--hidden-import MODULENAME]

[--additional-hooks-dir HOOKSPATH]

[--runtime-hook RUNTIME_HOOKS] [--exclude-module EXCLUDES]

[--key KEY] [- d [{all,imports,bootloader,noarchive}]] [- s]

[--noupx] [- c] [- w]

[- I]

[--version-file FILE] [- m] [- r RESOURCE]

[--uac-admin] [--uac-uiaccess] [--win-private-assemblies]

[--win-no-prefer-redirects]

[--osx-bundle-identifier BUNDLE_IDENTIFIER]

[--runtime-tmpdir PATH] [--bootloader-ignore-signals]

[--distpath DIR] [--workpath WORKPATH] [- y]

[--upx-dir UPX_DIR] [- a] [--clean] [--log-level LEVEL]

Scriptname [scriptname...]

.

5. If a help message appears, the command has been successfully installed.

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

Servers

Wechat

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

12
Report