早上好 !我正在使用 pynsist 为用 python 编写的脚本创建一个 Windows 安装程序。我在 [Include] 部分列出了脚本所需的所有包。当我运行 python -m nsist installer.cfg 命令生成安装程序时,出现以下错误。ImportError: Cannot bundle namespace package 'mpl_toolkits' 如何解决这个错误?以下是配置文件的内容:
[Application]
name = AQuiData
version = 0.1
publisher = Wahabo OUEDRAOGO
script = AquiData.py
icon = Donnees/Logo_logiciel.ico
console = true
[Python]
version = 3.9.7
[Include]
packages = numpy
pandas
matplotlib
PyQt5
scipy
pyqtgraph
sympy
pyvisa
ctypes
visa
openpyxl
pyvisa_py
keysight
xlsxwriter
serial
pytz
dateutil
six
mpmath
sklearn
usb
et_xmlfile
PIL
pyparsing
pylab
cycler
kiwisolverenter code here
mpl_toolkits
picosdk
AQ
[Build]
installer_name = AQuiData.exe