Python Mogo ImportError: cannot import name Connection

后端 未结 4 1772
轻奢々
轻奢々 2021-02-05 16:09

Can\'t figure out why this is not working.

mogo==0.2.4

File \"/Users/Sam/Envs/AdiosScraper/lib/python2.7/site-packages/mogo/connection.py\",         


        
4条回答
  •  离开以前
    2021-02-05 16:47

    Under PyMongo 3.2, you can connect to MongoDB like this:

    from pymongo import MongoClient
    c = MongoClient()
    

    mongo_client – Tools for connecting to MongoDB

提交回复
热议问题