您的位置:首页技术文章
文章详情页

python - ImportError: cannot import name ScopedSession

【字号: 日期:2022-08-04 10:32:56浏览:43作者:猪猪

问题描述

返回的错误如下

runfile(’E:/下载/pygrid-master/pygrid-master/mainform.py’, wdir=’E:/下载/pygrid-master/pygrid-master’)Traceback (most recent call last): File '<ipython-input-1-86a44a5ce015>', line 1, in <module> runfile(’E:/下载/pygrid-master/pygrid-master/mainform.py’, wdir=’E:/下载/pygrid-master/pygrid-master’) File 'D:UsersAdministratorAnaconda2libsite-packagesspyderlibwidgetsexternalshellsitecustomize.py', line 699, in runfile execfile(filename, namespace) File 'D:UsersAdministratorAnaconda2libsite-packagesspyderlibwidgetsexternalshellsitecustomize.py', line 74, in execfile exec(compile(scripttext, filename, ’exec’), glob, loc) File 'E:/下载/pygrid-master/pygrid-master/mainform.py', line 14, in <module> File 'records.py', line 6, in <module> from elixir import * File 'D:UsersAdministratorAnaconda2libsite-packageselixir__init__.py', line 29, in <module> from elixir.entity import Entity, EntityBase, EntityMeta, EntityDescriptor, File 'D:UsersAdministratorAnaconda2libsite-packageselixirentity.py', line 17, in <module> from sqlalchemy.orm import MapperExtension, mapper, object_session, ImportError: cannot import name ScopedSession

刚开始提示我没装elixir,等我装了以后又提示这个错误,请问问题到底出在哪了?

问题解答

回答1:

http://stackoverflow.com/ques...

标签: Python 编程
相关文章: