执行xxx.exe文件调用oracledb 时报错
DPY-3016:python-oracledb thin mode cannot be used because the cryptography package is not installed
原因是其隐式调用了cryptography ,打包时加入参数
–hidden-import=cryptography.hazmat.primitives.kdf.pbkdf2解决
pyinstaller --hidden-import=cryptography.hazmat.primitives.kdf.pbkdf2 -F xxx.py -p "path"
参考方案:https://github.com/oracle/python-oracledb/issues/100
Python-oracledb报错DPY-3016:解决加密包缺失问题
文章讲述了在执行xxx.exe文件时遇到的DPY-3016错误,原因在于python-oracledb依赖了未安装的cryptography包。解决方法是使用pyinstaller时添加`--hidden-import=cryptography.hazmat.primitives.kdf.pbkdf2`参数。参考链接:https://github.com/oracle/python-oracledb/issues/100
1万+

被折叠的 条评论
为什么被折叠?



