Can't import MongoClient

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

I am unable to do this:

from pymongo import MongoClient

I get:

>>> import pymongo
>>> from pymongo import         


        
11条回答
  •  萌比男神i
    2021-01-01 21:53

    This problem may occur if you have multiple .py programs in the current working directory. Deleting them solved my error. I am not sure of the reason though.

提交回复
热议问题