我尝试将名为table.py的 python 脚本转换为 .exeopenpyxl, pandas, dataframe_image
我尝试使用标题中的模块导入的脚本如下:
pyinstaller:我跑了:pyinstaller --onefile -windowed table.py
。当我单击可执行文件时,会弹出一条消息说Failed to execute script table
cx_Freeze:我跑了python setup.py build_exe
它打印了error: The baseline image directory does not exist. This is most likely because the test data is not installed. You may need to install matplotlib from the source to get the test data.
所以我按照这里的答案跑了:
pip install "numpy<1.18.3" "pillow<7"
python setup.py build_exe --excludes=matplotlib.tests,numpy.random._examples
它弹出了这条消息:
有人对现在如何进行有任何想法吗?