我使用pyinstaller编译.py文件的方法如下:
当我运行编译后的文件时,出现了错误:
我在谷歌上没有发现有用的内容。
pyinstaller --hidden-import presto --hidden-import scipy._lib.messagestream --onefile main.py
当我运行编译后的文件时,出现了错误:
sqlalchemy.exc.NoSuchModuleError: Can't load plugin: sqlalchemy.dialects:presto
我使用sqlalchemy.engine连接到presto,如下:
engine = create_engine('presto://presto.service.example.com:8080/hive/default')
我在谷歌上没有发现有用的内容。
main.py
,错误就不会发生了吗? - SuperShoot--hidden-import presto
是正确的吗?看起来 DB-API 驱动程序是由 PyHive 提供的。在 pypi 中的presto
包似乎与此无关。 - Ilja Everilä