已排除Python文件中用的路径问题,已排除相关库以及环境问题,执行pyinstaller -F 打包运行闪退,执行pyinstaller -F filename.py --noconsole 命令打包,运行的报错原因为ImportError:cannot import name _elementpath求解🙃
在使用pyinstaller时增加以下内容: 【望采纳】
pyinstaller -F -w XXX.py --hidden-import lxml._elementpath