当前位置:网站首页>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
边栏推荐
- Download PDF from HowNet (I don't want to use CAJViewer anymore!!!)
- L2-011 play binary tree (build tree + BFS)
- Sword finger offer: the path with a certain value in the binary tree (backtracking)
- 深度学习笔记 —— 物体检测和数据集 + 锚框
- Unity3D 实用技巧 - 理论知识库(一)
- Thoughts on a small program
- Set Chrome browser background to eye protection (eye escort / darkreader plug-in)
- Sword finger offer: push in and pop-up sequence of stack
- Informatics Aosai yibentong 1212: letters | openjudge 2.5 156: Letters
- Differences between redis and MySQL
猜你喜欢

What are the redis data types

Sword finger offer: the path with a certain value in the binary tree (backtracking)

Practice and exploration of knowledge map visualization technology in meituan

简单的拖拽物体到物品栏
![解决ValueError: Argument must be a dense tensor: 0 - got shape [198602], but wanted [198602, 16].](/img/99/095063b72390adea6250f7b760d78c.png)
解决ValueError: Argument must be a dense tensor: 0 - got shape [198602], but wanted [198602, 16].

POI export message list (including pictures)

2022/4/22

《2021多多阅读报告》发布,95后、00后图书消费潜力攀升

【数据库】MySQL基本操作(基操~)

Innovation training (VI) routing
随机推荐
POI export message list (including pictures)
Customize the navigation bar at the top of wechat applet (adaptive wechat capsule button, flex layout)
Teach you how to build the ruoyi system by Tencent cloud
Progress of innovation training (III)
Druid -- JDBC tool class case
Spark small case - RDD, broadcast
Simply drag objects to the item bar
Pixel 5 5g unlocking tutorial (including unlocking BL, installing edxposed and root)
Wechat payment function
[WinUI3]编写一个仿Explorer文件管理器
深度学习笔记 —— 数据增广
General enumeration constant class
【数据库】MySQL多表查询(一)
New terminal play method: script guidance independent of technology stack
The programmer starts the required application with one click of window bat
JS engine loop mechanism: synchronous, asynchronous, event loop
Unity3d practical skills - theoretical knowledge base (I)
HRegionServer的详解
PHP+MySQL 制作留言板
How can continuous integration (CI) / continuous delivery (CD) revolutionize automated testing