(1)下载安装installer,不如我安装在D:Program FilesPython35,安装完成后,在D:Program FilesPython35Scripts可以找到installer.exe
(2)执行打包
D:Program FilesPython35Scripts>pyinstaller -F spider_005.py
(3)碰到问题
D:Program FilesPython35Scripts>pyinstaller -F spider_005.py
failed to create process.
解决办法:
找到D:Program FilesPython35Scriptspyinstaller-script.py
将
#!D:Program FilesPython35python.exe # EASY-INSTALL-ENTRY-SCRIPT: 'PyInstaller==3.3','console_scripts','pyinstaller'
改成
#!"D:Program FilesPython35python.exe" # EASY-INSTALL-ENTRY-SCRIPT: 'PyInstaller==3.3','console_scripts','pyinstaller'
(4)执行成功
(5)因为我是把.py文件放到了D:Program FilesPython35Scripts下,所以在D:Program FilesPython35Scripts下会发现新增了2个文件夹build和dist