在我使用pyinstaller转换为exe后,在我的pyzbar程序中出现此错误

2024-05-14 18:00:00 发布

您现在位置:Python中文网/ 问答频道 /正文

错误消息是:

PyInstallerImportError: Failed to load dynlib/dll 'C:\\Users\\PETERM~1\\AppData\\Local\\Temp\\_MEI143202\\pyzbar\\libico
nv-2.dll'. Most probably this dynlib/dll was not found when the application was frozen.

Tags: to消息local错误loadusersappdatatemp
1条回答
网友
1楼 · 发布于 2024-05-14 18:00:00

似乎GitHub上的r92546024回答了这个问题:link

摘录:

  1. if you have MSVCR120.dll missing when execute the exe , you need to install C++ package
    https://www.microsoft.com/en-ph/download/confirmation.aspx?id=40784

  2. You can put the libiconv.dll & libzbar-64.dll in the exe work folder.
    The exe file will use the dll in the same folder by first
    Note:
    You can get the two dll from C:\Python35\Lib\site-packages\pyzbar and then copy to the exe folder

相关问题 更多 >

    热门问题