UzzzzZ

2023-10-20 16:02:48 浏览数 (3)

问题

python3.7 MongoDB报错

TypeError: ‘Collection’ object is not callable. If you meant to call the ‘authenticate’ method on a ‘Database’ object it is failing because no such method exists.

解决办法

降级Mongodb库的版本

代码语言:javascript复制
pip3 uninstall pymongo   
pip3 install pymongo==3.9 

1 人点赞