问题 使用pyinstaller打包含有 pyshark、tshark 包的项目,运行时报错 configparser.NoSectionError: No section: 'dumpcap' 解决 # 打包时加上 --collect-all <包名> pyinstaller --collect-all pyshark -F .\demo.py 参考:https://pyinstaller.org/en/stable/usage.html