pyinstaller WARNING: lib not found: xxxx.dll dependency of xxxxx 错误

版权声明:本文为博主原创文章,未经博主允许下请随便转载。 https://blog.csdn.net/god_wen/article/details/88629865

背景

因为之前用pip 安装的PySIde2,而这种方式安装的PySide2只有源码缺少缺少lib库。所以用pyinstaller打包时会包报没发现lib。

12662 WARNING: lib not found: shiboken2.dll dependency of D:\Python\JDReminding\venv\lib\site-packages\PySide2\QtGui.p
yd
12871 WARNING: lib not found: shiboken2.dll dependency of D:\Python\JDReminding\venv\lib\site-packages\PySide2\QtWidge
ts.pyd
13026 WARNING: lib not found: shiboken2.dll dependency of D:\Python\JDReminding\venv\lib\site-packages\PySide2\QtCore.
pyd
13143 WARNING: lib not found: shiboken2.dll dependency of D:\Python\JDReminding\venv\lib\site-packages\PySide2\QtNetwo
rk.pyd
14200 WARNING: lib not found: shiboken2.dll dependency of D:\Python\JDReminding\venv\lib\site-packages\PySide2\pyside2
.dll

解决方法

用–paths 告诉pyinstaller去哪找到特定的库:

pyinstaller --paths  D:\Python\JDReminding\venv\Lib\site-packages\shiboken2 hello.py

猜你喜欢

转载自blog.csdn.net/god_wen/article/details/88629865
今日推荐