Pyinstaller 打包程序 python-oracledb 报错 DPY-3016问题解决方案

执行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,开发语言)