1. “IndexError: tuple index out of range” 错误分析:这个问题是当前的pyinstaller版本不支持python的版本 解决办法:修改pyinstaller的版本,pipinstallpyinstaller==适合你的版本 **2. ImportError: C extension: No module named‘pandas._libs.tslibs.timedeltas’ ** 错误分析:因为我的代码中引用了pandas库,然...
安装过程中我遇到过一些错误 刚开始是报 "tuple index out of range" , 最后追查一圈发现了原因……使用pyinstaller的开发者新版,官网目前的版本是3.2.1 只支持到python3.5 ,恰好我用的Anaconda3装的python是3.6版本的。 解决办法:官网源码里有https://github.com/pyinstaller/pyinstaller替换自己的安装目录python\Li...
1. “IndexError: tuple index out of range” 错误分析:这个问题是当前的pyinstaller版本不支持python的版本 解决办法:修改pyinstaller的版本,pip install pyinstaller==适合你的版本 1. 2. **2. ImportError: C extension: No module named‘pandas._libs.tslibs.timedeltas’ ** 错误分析:因为我的代码中引用了...
一开始使用了py2exe,模块安装pip install py2exe,安装完成 但是执行过程时候报错了(下的版本低了,不兼容3.6) 报错信息: Indexerror: tuple index out of range google了一下,发现不兼容3.6的,放弃了它。 pyinstall: 然后选择了pyinstall,使用pip install pyinstaller安装完成 pyinstallerF:\itchat-friends.py 安装...
pip installpyinstaller 在命令行中进入.py文件所在的目录。输入以下命令打包.py文件:pyinstaller --...
文件大小已经由8.5M增大到14.5M了,再次执行之,ok,看到了我们的界面,而且功能也是ok的: 至此,程序打包完毕。需要注意的是,pyinstaller官方最新版本是3.2.1,该版本不支持python 3.6,在python 3.6打包的话,会报异常:IndexError: tuple index out of range,看来最新的可能并不是最好的。
另外需要pywin32。安装方法:先跑pip install pywin32再跑pip install pyinstaller即可,多么简单。
Python3.6用Pyinstaller打包的解决办法 用Pyinstaller3.2.1打包Python3.6的时候遇到了“IndexError: tuple index out of range”的错误提示 之前以为是自己的程序有BUG 后来在网上看到 Pyinstaller3.2.1 现在还并不支持 Python3.6 在网上终于找到了解决办法,如下 找到D:\python\Python36-32......
pyinstaller 打包生成.exe 可执行文件报错 “IndexError: tuple index out of range” 想把pyqt写的GUI程序打包成 .exe文件,以便在Windows下运行,不想因为使用Python3.6,出现兼容问题: IndexError: tuple index out of range Pyinstaller官网目前的版本是3.2.1 只支持到Python2.7,Python3.3~Python3.5 需自己在官网...
打包出错:pyinstaller IndexError: tuple index out of range 修改:D:/apps/Python310/Lib/dis.pyPython def _unpack_opargs(code): extended_arg = 0 for i in range(0, len(code), 2): op = code[i] if op >= HAVE_ARGUMENT: arg = code[i+1] | extended_arg extended_arg = (arg << 8)...