Install Pymongo in Python3
This tutorial shows how to install the Pymongo library. The editor uses pycharm.
Preparation
Here, we directly use pycharm to install the Pymongo Library and the mongodb-related management plug-in of pycharm.
Install Pymongo
It is very easy to install with pycharm. First, open the relevant window according to the following menu path.
Copy codeThe Code is as follows:
Pycharm: File> Settings> Project python> Project InterPreter
In this step, you can see a list of libraries, which list some frequently used installed libraries. Next, click a green plus sign on the right. Open an Available Packages window and search for the keyword pymongo. Find the relevant library, select it, and click install package in the lower-left corner of the window to install the package.
Install the Pycharm Mongodb plug-in
Open the window according to the following menu path:
Copy codeThe Code is as follows:
Pycharm: File> settings> plugins
By this step, you will see a list of plug-ins you have installed.
Next, click the buttons in the middle and Browse repositories... to open the list of all plug-ins. Search for mongo, select the Mongo Plugin, and click Install in the window on the right.
Configure the visual Mongodb Tool
The preparation is complete. Before operating the code, we need to configure the Mongodb management software. Otherwise, we do not know what the operation is. We use the tool provided by pycharm.
First, findMongo Exploer
(Usually on the left or right ). Click Open panel and click this setting button.
In the pop-up window, click the green plus sign on the right side to open an information filling window.
Simply fill in some required items, click Test Connection to Test whether it is available, if possible.
After the configuration is complete, all database information is displayed.
The above is all the content of this article. I hope it will be helpful for your learning and support for helping customers.