当前位置:网站首页>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:56:00 【Huang Jiajun】
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.
Error reason :
pymongo4.0.1 Great changes have taken place ,pymongo 4.0.1 It doesn't contain 'Collection' object.
Solution 1 :( When I was experimenting , Failed to successfully download to the lower version pymongo)
(1) uninstall pymongo 4.0.1
C:\Users\nx>pip uninstall pymongo
(2) install pymongo-3.5.1
C:\Users\nx>pip install pymongo==3.5.1
Solution 2 :
Change the function that cannot be called to pymongo4.0.1 Functions with similar functions in the or implement that function by yourself .
版权声明
本文为[Huang Jiajun]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204230454290173.html
边栏推荐
- Agile practice | agile indicators to improve group predictability
- Teach you how to build the ruoyi system by Tencent cloud
- Introduction to raspberry pie 3B - system installation
- Field injection is not recommended using @ Autowired
- Special topic of data intensive application system design
- 和谐宿舍(线性dp / 区间dp)
- Spark small case - RDD, spark SQL
- Solve valueerror: argument must be a deny tensor: 0 - got shape [198602], but wanted [198602, 16]
- Unity攝像頭跟隨鼠標旋轉
- Better way to read configuration files than properties
猜你喜欢
[WinUI3]编写一个仿Explorer文件管理器
Sword finger offer: the median in the data stream (priority queue large top heap small top heap leetcode 295)
What are the redis data types
Simply drag objects to the item bar
Opencv + clion face recognition + face model training
Innovation training (IX) integration
COM in wine (2) -- basic code analysis
View, modify and delete [database] table
【数据库】MySQL多表查询(一)
Spark optimization
随机推荐
Alibaba tip: it is better to create threads manually
Introduction to load balancing
Unity3d practical skills - theoretical knowledge base (I)
QPushbutton 槽函数被多次触发
redis和mysql区别
Painless upgrade of pixel series
Learning Android V from scratch - UI
Case of using stream load to write data to Doris
敏捷实践 | 提高小组可预测性的敏捷指标
Making message board with PHP + MySQL
Field injection is not recommended using @ Autowired
Installation and deployment of Flink and wordcount test
MySQL -- execution process and principle of a statement
【数据库】MySQL基本操作(基操~)
[winui3] write an imitation Explorer file manager
Flink's important basics
PIP3 installation requests Library - the most complete pit sorting
Unity camera rotation with sliding effect (rotation)
js 判断数字字符串中是否含有字符
Innovation training (10)