当前位置:网站首页>TypeError: ‘Collection‘ object is not callable. If you meant to call the ......
TypeError: ‘Collection‘ object is not callable. If you meant to call the ......
2022-04-23 04:54:00 【黄佳俊、】
TypeError: 'Collection' object is not callable. If you meant to call the 'update' method on a 'Collection' object it is failing because no such method exists.
报错原因:
pymongo4.0.1 发生了很大的改变,pymongo 4.0.1里不包含'Collection' object。
解决方法一:(我实验的时候,没能成功下载到低版本的pymongo)
(1)卸载pymongo 4.0.1
C:\Users\nx>pip uninstall pymongo
(2)安装pymongo-3.5.1
C:\Users\nx>pip install pymongo==3.5.1
解决方法二:
把不能调用的函数改换成pymongo4.0.1中功能类似的函数或者自己实现那个函数功能。
版权声明
本文为[黄佳俊、]所创,转载请带上原文链接,感谢
https://blog.csdn.net/weixin_48419914/article/details/124315182
边栏推荐
- C# List字段排序含有数字和字符
- Field injection is not recommended using @ Autowired
- The object needs to add additional attributes. There is no need to add attributes in the entity. The required information is returned
- What's the difference between error and exception
- Flink's important basics
- Solutions to the failure of sqoop connection to MySQL
- Unity rawimage background seamlessly connected mobile
- Getprop property
- Innovation training (XI) airline ticket crawling company information
- JS determines whether the numeric string contains characters
猜你喜欢
![Luogu p1858 [multi person knapsack] (knapsack seeking the top k optimal solution)](/img/2e/3313e563ac4f54057e359941a45098.png)
Luogu p1858 [multi person knapsack] (knapsack seeking the top k optimal solution)

Windows remote connection to redis

Teach you how to build the ruoyi system by Tencent cloud

Innovation training (IV) preliminary preparation - server

Simply drag objects to the item bar

Innovation training (V) configuration information
![[WinUI3]编写一个仿Explorer文件管理器](/img/3e/62794f1939da7f36f7a4e9dbf0aa7a.png)
[WinUI3]编写一个仿Explorer文件管理器

Excel uses the functions of replacement, sorting and filling to comprehensively sort out financial data

MySQL -- execution process and principle of a statement

DIY 一个 Excel 版的子网计算器
随机推荐
Opencv + clion face recognition + face model training
Leetcode004 -- Roman numeral to integer
Better way to read configuration files than properties
2022/4/22
js 判斷數字字符串中是否含有字符
Unity rawimage background seamlessly connected mobile
Flink case - Kafka, MySQL source
Wine (COM) - basic concept
Thoughts on a small program
Unity攝像頭跟隨鼠標旋轉
Graduation project
vscode ipynb文件没有代码高亮和代码补全解决方法
Innovation training (XI) airline ticket crawling company information
Unity3d practical skills - theoretical knowledge base (I)
getprop 属性
[database] MySQL multi table query (I)
负载均衡简介
CLion+OpenCV identify ID number - detect ID number
[2021] Spatio-Temporal Graph Contrastive Learning
MySQL time function query