If Python is not installed in your device you can download it form this link. Please Install according to your system specifications and requirements.
- First open powershell then write this command.
pip install pymongo
This will install PyMongo in your device.
This will also require MongoDB. So, just go on official MongoBD website and download the installer according to your system specifications.
- First open powershell then write mongod command.
- Then open second powershell then write mongo command.
- Be sure that these commands are properly running in the poweshell.
- Go to MongoDBCompass.
- Click on Fill in connection fields individually.
- Then press connect button.
- Then run 1.connect.py.
- Now enjoy the codeš„.
For more information, please refer to the PyMongo docs.
For more information, please refer to the MongoDB docs.
For more information, please refer to the Python docs.