@@ -42,27 +42,32 @@ You must install the PyMongo driver module to make it available to your
4242Python application. We recommend using
4343`pip <http://pypi.python.org/pypi/pip>`__ to install PyMongo.
4444
45+ PyMongo requires `dnspython <https://pypi.org/project/dnspython>`__ to support
46+ ``mongodb+srv://`` connection strings and `MongoDB Atlas
47+ <https://www.mongodb.com/cloud>`__. ``dnspython`` is automatically installed
48+ when installing or upgrading to the latest PyMongo version.
49+
4550The following command demonstrates how you can install the latest
4651version of the module using the command line:
4752
4853.. code-block:: sh
4954
50- $ python -m pip install ' pymongo[srv]'
55+ $ python -m pip install pymongo
5156
52- If you need to install a specific version of ``pymongo`` , specify the
57+ If you need to install a specific version of PyMongo , specify the
5358version in your command. The following command shows how you can use
5459``pip`` to install PyMongo version ``3.11``:
5560
5661.. code-block:: sh
5762
58- $ python -m pip install ' pymongo[srv]' ==3.11
63+ $ python -m pip install pymongo==3.11
5964
6065If you already have PyMongo installed and need to upgrade to the latest
6166version, use the following ``pip`` command:
6267
6368.. code-block:: sh
6469
65- $ python -m pip install --upgrade ' pymongo[srv]'
70+ $ python -m pip install --upgrade pymongo
6671
6772See `Installation <https://pymongo.readthedocs.io/en/stable/installation.html>`__
6873for more ways to install PyMongo.
0 commit comments