Python3 installation pymongo


This tutorial shows how to install the pymongo library. Of course, the editor uses pycharm.

Blog post address:


Pycharm is directly used to install pymongo library and mongodb related management plug-ins of pycharm.

Install pymongo

This is very simple to install with pycharm. First, open the relevant window according to the following menu path.

pycharm : File > Settings > Project python > Project InterPreter

Python3 installation pymongo

At the above step, you should see a list of libraries, which lists some installed libraries you commonly use. 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 then click Install Package at the bottom left of the window to install it.

Python3 installation pymongo

Install pychar mongodb plug-in

Open the window according to the following menu path:

pycharm : File > settings > plugins

By this point, you should see a list of plug-ins you have installed.

Next, click the three buttons below and the middle button, browse repositories Button to open the list of all plug-ins. Search Mongo, select Mongo plugin, and click the window on the right to install it.

Python3 installation pymongo

Configure visual mongodb tool

The preparations have been completed. We need to configure mongodb’s management software before operating the code. Otherwise, after operating the database, we don’t know what we have operated. Tools we use the tools provided by pycharm.

First, find one on your pageMongo ExploerButton (usually on the left or right). Click to open the panel and click this setting button.

Python3 installation pymongo

In the pop-up window, click the small green plus sign on the right to open an information filling window.

Python3 installation pymongo

Simply fill in some required items and click test connection to test whether it is available, if so.

After configuration, all database information can be displayed.

Python3 installation pymongo