执行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