We do not cover the actual installation of Python itself, as that is beyond the scope of this book. However, we will cover the installation of the PyMongo driver, which sits between Python and MongoDB. Before we dive into the details of installing the PyMongo driver package, it's important to discuss potential driver compatibility issues.
For more information about how to install Python, please consult the documentation at https://docs.python.org/3/using/index.html. For information on the PyMongo driver, see https://github.com/mongodb/mongo-python-driver.
In many cases, you will find multiple versions of Python installed on the server you plan to use to host MongoDB. If that is the case, you must ensure that the version of PyMongo chosen not only supports the version of MongoDB you are using but the version of Python you plan to use as well!