标签:alt col installer 解决办法 成功 技术 image spider 问题
(1)下载安装installer,不如我安装在D:\Program Files\Python35,安装完成后,在D:\Program Files\Python35\Scripts可以找到installer.exe
(2)执行打包
D:\Program Files\Python35\Scripts>pyinstaller -F spider_005.py
(3)碰到问题
D:\Program Files\Python35\Scripts>pyinstaller -F spider_005.py
failed to create process.
解决办法:
找到D:\Program Files\Python35\Scripts\pyinstaller-script.py
将
#!D:\Program Files\Python35\python.exe # EASY-INSTALL-ENTRY-SCRIPT: ‘PyInstaller==3.3‘,‘console_scripts‘,‘pyinstaller‘
改成
#!"D:\Program Files\Python35\python.exe" # EASY-INSTALL-ENTRY-SCRIPT: ‘PyInstaller==3.3‘,‘console_scripts‘,‘pyinstaller‘
(4)执行成功
(5)因为我是把.py文件放到了D:\Program Files\Python35\Scripts\下,所以在D:\Program Files\Python35\Scripts\下会发现新增了2个文件夹build和dist
python3.5+installer 将.py 打包成.exe
标签:alt col installer 解决办法 成功 技术 image spider 问题
原文地址:http://www.cnblogs.com/zhouwp/p/7690804.html