Python MongoDB. a
- Previous Page MySQL Join
- Next Page MongoDB Anfani Database
Python naa'ni da'ya ka'ya ina daabita amincin dabaabita. a
Ina dabaabita NoSQL naa'ni da'ya kanan da'ya ni MongoDB. a
MongoDB
MongoDB ya'a ka'ya dabaabita ka'ya ina JSON, ka'ya ya'a ka'ya dabaabita naa'ni naa'ni da'ya. a
Doni ce ka'ya ina ya'a ka'ya ka'ya ina MongoDB dabaabita. a
You can in https://www.mongodb.com Download free MongoDB database.
PyMongo
Python needs the MongoDB driver to access the MongoDB database.
In this tutorial, we will use the MongoDB driver "PyMongo".
We recommend that you use PIP to install "PyMongo".
PIP is likely already installed in the Python environment.
Navigate to the location of PIP via the command line, then type the following:
Download and install "PyMongo":
C:\Users\...\AppData\Local\Programs\Python\Python36-32\Scripts>python -m pip install pymongo
Now you have downloaded and installed the mongoDB driver.
Test PyMongo
To test whether the installation was successful or if you have installed "pymongo", please create a Python page containing the following content:
demo_mongodb_test.py:
import pymongo
If the above code is executed without errors, then "pymongo" is installed and ready.
- Previous Page MySQL Join
- Next Page MongoDB Anfani Database