Sesame HTTP: PyMongo Installation

In Python, if you want to interact with MongoDB, you need to use the PyMongo library. Here's how to install it.

1. Related Links

2. pip install

It is recommended to use pip to install, the command is as follows:

pip3 install pymongo

After running, you can complete the installation of PyMongo.

3. Verify the installation

In order to verify that the PyMongo library has been installed successfully, you can test it on the command line:

$ python3
>>> import pymongo
>>> pymongo.version
'3.4.0'
>>>

If its version content is successfully output, it proves that the installation was successful.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325806387&siteId=291194637