单位内网环境,要安装pyInstaller,不能直接pip安装,需要下wheel 或者tz包才可以。 pyInstaller有许多前置库,要先安装前置库,再安装pyInstaller。所需安装包有,我的是python3.7,选择的都是py3版本;windows64位系统,选择win_amd64的版本:
future
pefile
altgraph
macholib
pywin32_ctypes
pyinstaller_hooks_contrib
pyinstaller
所有安装包都从这里下载:https://www.lfd.uci.edu/~gohlke/pythonlibs/
打开CMD,CD 安装包下载的路径
安装顺序如下:
pip install future-0.18.2-py3-none-any.whl
pip install pefile-2021.9.3-py3-none-any.whl
pip install altgraph-0.17.2-py3-none-any.whl
pip install macholib-1.14-py2.py3-none-any.whl
pip install pywin32_ctypes-0.2.0-py3-none-any.whl
pip install pyinstaller_hooks_contrib-2021.3-py3-none-any.whl
pip install pyinstaller-4.5.1-py3-none-win_amd64.whl
来源地址:https://blog.csdn.net/SAPmatinal/article/details/131524319