1.下载PyInstaller 2.1(https://copy.com/JklyNGHaL8UVKTa7)

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

3.安装Python 2.7.9(https://copy.com/MqDabjsCJksKUwdq)并安装,这里我默认安装到C盘根目录

C:\Python27\

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

5.下载pywin32(https://copy.com/TdO0GhPVXfAskfei)。

安装时,如果提示“Python version 2.7 required, which was not found in the registry”则需要取消安装,按如下步骤处理:
下载register.py脚本(https://copy.com/nuFYu7A8v6FzUthl),双击该脚本后即可重新安装pywin32。
该问题出现在win7 64位系统,安装python时,选择所有用户后。
解决办法来自:http://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

Related Posts: Python2.7,pywin32,PyInstaller 2.1安装流程 :