Can't import MongoClient

后端 未结 11 1100
时光取名叫无心
时光取名叫无心 2021-01-01 21:18

I am unable to do this:

from pymongo import MongoClient

I get:

>>> import pymongo
>>> from pymongo import         


        
11条回答
  •  爱一瞬间的悲伤
    2021-01-01 21:45

    If you used pymongo.Connection and encountered error, you should know that after the new updates, you should use pymongo.MongoClient instead. I had this issue so hopefully this will be helpful to someone else.

提交回复
热议问题