在较新版本的 pandas 中,read_sql 方法依赖于 sqlalchemy 引擎的 execution_options 方法来设置执行参数。如果你的 sqlalchemy 版本太旧,可能不支持这个方法,从而引发错误。解决这个问题的一种方法是更新你的 sqlalchemy 版本。如果你的 sqlalchemy 版本已经是最新的,那么问题可能出在 pan
_app, options) self._sa.apply_driver_hacks(self._app, info, options) if echo: options['echo'] = echo # next two lines are new config_engine_opts = self._app.config.get('SQLALCHEMY_ENGINE_OPTS', {}) options.update(config_engine_opts) self._engine = rv = sqlalchemy.create_engine...