看着这个问题, 有这个导入错误:
什么导致了"(未知位置)"的消息?
在看到这个之前,我有一种模糊的假设,认为它意味着该模块是内置在Python中的,就像
但在链接的问题中显然不是这种情况。
>>> from flask_security import login_user
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: cannot import name 'login_user' from 'flask_security' (unknown location)
什么导致了"(未知位置)"的消息?
在看到这个之前,我有一种模糊的假设,认为它意味着该模块是内置在Python中的,就像
sys
一样,因此根本没有任何外部文件。但在链接的问题中显然不是这种情况。