Python无法连接mongodb:'module' object has no attribute 'Connection'
我的Python是2.7的,安装了pymongo-3.0.3.win-amd64-py2.7,importpymongoconnection=pymongo.Connec...
我的Python是2.7的,安装了pymongo-3.0.3.win-amd64-py2.7,
import pymongo
connection=pymongo.Connection('localhost',27017)
报错AttributeError: 'module' object has no attribute 'Connection' 展开
import pymongo
connection=pymongo.Connection('localhost',27017)
报错AttributeError: 'module' object has no attribute 'Connection' 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询