python文件打包成exe时报错

显示缺少ordlookup模块,如图

img

建议重新安装pyinstaller,
https://github.com/pyinstaller/pyinstaller

需要的模块必须在主Python解释器下,不能再pycharm下

更新pefile模块
1.pip uninstall pefile
2.pip install pefile
这个ordlookup是在pefile.py文件中导入的,更新到新版本就好了。