请知悉:本文最近一次更新为 9年 前,文中内容可能已经过时。

1.下载PyInstaller 2.1(PyInstaller-2.1.zip

2.按上面错误提示的目录,把压缩包里的文件夹放到D盘根目录

3.安装Python 2.7.9(python-2.7.9.msi)并安装,这里我默认安装到C盘根目录

C:\Python27

4.下一步将Add python.exe to Path选择Will be installed to local hard drive.
添加Python到path环境变量中

5.下载pywin32(pywin32-219.win-amd64-py2.7.exe pywin32-219.win32-py2.7.exe)。

安装时,如果提示“Python version 2.7 required, which was not found in the registry”则需要取消安装,按如下步骤处理:
下载register.py脚本(register.py),双击该脚本后即可重新安装pywin32。
该问题出现在win7 64位系统,安装python时,选择所有用户后。
解决办法来自:https://www.cnblogs.com/min0208/archive/2012/05/24/2515584.html

6.安装好pywin32以后,开始-运行输入cmd,打开命令窗口,输入d:回车,进入D盘

7.输入cd PyInstaller-2.1进入PyInstaller-2.1的目录

8.输入pyinstaller.py,回车,安装pyinstaller
命令行返回如下内容表示安装成功:

D:\PyInstaller-2.1>pyinstaller.py
Usage: pyinstaller.py [opts] <scriptname> [ <scriptname> ...] | <specfile>
pyinstaller.py: error: Requires at least one scriptname file or exactly one .spec-file

如您从本文得到了有价值的信息或帮助,请考虑扫描文末二维码捐赠和鼓励。

本站资源,请 注册城通账户 后,使用客户端下载,参考教程:城通网盘如何使用客户端下载文件


尊重他人劳动成果。转载请务必附上原文链接,我将感激不尽。


与《Python2.7,pywin32,PyInstaller 2.1安装流程》相关的博文:


留言

Admin Avatar
😀
😀😁😂😅😭🤭😋😘🤔😰😱🤪💪👍👎🤝🌹👌