您的位置 首页 未分类

‘Collection’ object is not callable for both insert() and insert_one() method of a pymongo Database

估计centos7要用pymongo 3的版本 sudo pip install -U pymongoDEPR…

估计centos7要用pymongo 3的版本

sudo pip install -U pymongo
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality.
Collecting pymongo
Downloading pymongo-3.11.1-cp27-cp27mu-manylinux1_x86_64.whl (487 kB)
|████████████████████████████████| 487 kB 14.7 MB/s
Installing collected packages: pymongo
Attempting uninstall: pymongo
Found existing installation: pymongo 2.5.2
Uninstalling pymongo-2.5.2:
Successfully uninstalled pymongo-2.5.2
Successfully installed pymongo-3.11.1

作者: 凡人

一个油腻中年男。

发表回复

关注微信
微信扫一扫关注我们

微信扫一扫关注我们

返回顶部