刚开始打包的时候,只运行了以下代码:
pyinstaller -F test.py
运行生成的exe文件后,出现“Is poppler installed and in PATH?”错误
然后将poppler的路径加入了系统Path
再运行还是会出现“Is poppler installed and in PATH?”
然后打包的时候加入PIL和pdfimage的脚本路径,运行了以下代码:
pyinstaller -F test.py -p D:\Python\Python37\Lib\site-packages\pdf2image;D:\Python\Python37\Lib\site-packages\PIL
运行生成的exe文件后,出现“attempted relative import with no known parent package”
请问如何解决打包问题,本人的python是3.7.3版本