ConfigurationError: Server at 127.0.0.1:27017 reports wire version 0, but this version of PyMongo requires at least 2 (MongoDB 2.6)

前端 未结 5 1694
没有蜡笔的小新
没有蜡笔的小新 2021-01-05 00:26

I am trying to build an application with mongoDB and Python Flask. While running the application, I am getting below error:

ConfigurationError: Server

5条回答
  •  清歌不尽
    2021-01-05 00:57

    First you change the server from ubuntu software center follow step

    1- Search Software & update in ubuntu software center

    2- Select Download from select Other then right side select Select best server it will take some time if it's complete

    try to re install mongodb from this command

    Step 1

    sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 2930ADAE8CAF5059EE73BB4B58712A2291FA4AD5
    

    Step 2

    sudo apt-get update
    

    step 3

    sudo apt-get install -y mongodb-org
    

提交回复
热议问题