raise ConfigurationError(self._incompatible_err) pymongo.errors.ConfigurationError: Server at xxx reports wire version 5, but this version of PyMongo requires at least 6 (MongoDB 3.6).

python3 Error

  File "/home/xxx/.local/lib/python3.10/site-packages/pymongo/topology_description.py", line 155, in check_compatible
    raise ConfigurationError(self._incompatible_err)
pymongo.errors.ConfigurationError: Server at xxx:27017 reports wire version 5, but this version of PyMongo requires at least 6 (MongoDB 3.6).

降低版本

复制代码
$ pip3 install pymongo==3.4.0
Defaulting to user installation because normal site-packages is not writeable
Collecting pymongo==3.4.0
  Using cached pymongo-3.4.0.tar.gz (583 kB)
  Preparing metadata (setup.py) ... done
Using legacy 'setup.py install' for pymongo, since package 'wheel' is not installed.
Installing collected packages: pymongo
  Attempting uninstall: pymongo
    Found existing installation: pymongo 4.2.0
    Uninstalling pymongo-4.2.0:
      Successfully uninstalled pymongo-4.2.0
  Running setup.py install for pymongo ... done
Successfully installed pymongo-3.4.0
复制代码

 

posted @   JeromePowell  阅读(1274)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 25岁的心里话
· 基于 Docker 搭建 FRP 内网穿透开源项目(很简单哒)
· 闲置电脑爆改个人服务器(超详细) #公网映射 #Vmware虚拟网络编辑器
· 一起来玩mcp_server_sqlite,让AI帮你做增删改查!!
· 零经验选手,Compose 一天开发一款小游戏!
点击右上角即可分享
微信分享提示