Skip to content

Commit 39d5c92

Browse files
authored
DOCS-15747 Update PyMongo Installation Instructions (#846)
* update pymongo installation page * CC review comment edits * style guide edits
1 parent b9cdfa1 commit 39d5c92

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

source/pymongo.txt

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,27 +42,32 @@ You must install the PyMongo driver module to make it available to your
4242
Python 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+
4550
The following command demonstrates how you can install the latest
4651
version 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
5358
version 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

6065
If you already have PyMongo installed and need to upgrade to the latest
6166
version, 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

6772
See `Installation <https://pymongo.readthedocs.io/en/stable/installation.html>`__
6873
for more ways to install PyMongo.

0 commit comments

Comments
 (0)