I wrote the below code in Pycharm.
import pymongo
from pymongo import mongo_client
connection = mongo_client()
When I executed the code, I got the below error.
Traceback (most recent call last): File "C:/Users/Mohan/PycharmProjects/pymongo/mongotutorial.py", line 7, in connection = mongo_client() TypeError: 'module' object is not callable.
My Python version is 3.6.5. Can you please help?
pip install pymongo