Skip to content
Advertisement

How to connect to Mongo database locally using python

I am using ipython 2.7. I am creating database name enron in mongodb. I have tried to connect to this database locally but the following error occurred – how do I fix it?

this my code:

JavaScript

error:

JavaScript

Advertisement

Answer

Refer this PyMongo Connection to connect and Connection is deprecated

User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement