小编Thu*_*oud的帖子

NoSuchModuleError:无法加载插件:sqlalchemy.dialects:oracle.oracledb

当我尝试使用 SQLAlchemy 连接 Oracle 服务器时。我收到这个错误。

NoSuchModuleError:无法加载插件:sqlalchemy.dialects:oracle.oracledb

from sqlalchemy.engine import create_engine

DIALECT = 'oracle'
SQL_DRIVER = 'oracledb'
USERNAME = 'username' #enter your username
PASSWORD = 'password' #enter your password
HOST = 'host url' #enter the oracle db host url
PORT = 1533 # enter the oracle port number
SERVICE = 'service name' # enter the oracle db service name
ENGINE_PATH_WIN_AUTH = DIALECT + '+' + SQL_DRIVER + '://' + USERNAME + ':' + PASSWORD +'@' + HOST + ':' + str(PORT) …
Run Code Online (Sandbox Code Playgroud)

python oracle sqlalchemy python-oracledb

3
推荐指数
1
解决办法
5618
查看次数

标签 统计

oracle ×1

python ×1

python-oracledb ×1

sqlalchemy ×1