Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在导入时遇到了这个错误from ldap3 import Server, Connection, ALL。请帮忙
from ldap3 import Server, Connection, ALL
尝试更新 pyasn1 包
pip install -U pyasn1
我偶然发现了同样的错误。在我的例子中,我执行的 python 文件被命名为 ldap3 python 库 ( ldap3.py)。所以我重命名了我的文件并且它有效。
ldap3.py