5

pymongo.errors.ConfigurationError: Server at 10.2.6.31:27017 reports wire versio...

 1 year ago
source link: https://blog.51cto.com/u_13753753/5811727
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

pymongo.errors.ConfigurationError: Server at 10.2.6.31:27017 reports wire version 5, but this versio

精选 原创

雍州无名 2022-11-01 08:28:55 博主文章分类:python ©著作权

文章标签 mongodb python 文章分类 其它 系统/运维 阅读数225

编写python3连接mongodb3.4的脚本报以下错误:

pymongo.errors.ConfigurationError: Server at 10.2.6.31:27017 reports wire version 5, but this version of PyMongo requires at least 6 (MongoDB 3.6).
pymongo.errors.ConfigurationError: Server at 10.2.6.31:27017 reports wire version 5, but this versio_mongodb

由于使用 pip3 install pymongo 命令默认安装的是支持mongodb3.6及以上版本的驱动,现需要降级到3.4,命令如下:

pip3 install pymongo==3.4
pymongo.errors.ConfigurationError: Server at 10.2.6.31:27017 reports wire version 5, but this versio_mongodb_02

问题解决。

  • 收藏
  • 评论
  • 分享
  • 举报

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK