@@ -66,11 +66,18 @@ MongoDB project, please report it according to the `instructions here
66
66
Installation
67
67
============
68
68
69
- If you have `setuptools
70
- <http://pythonhosted.org/setuptools/> `_ installed you
71
- should be able to do **easy_install pymongo ** to install
72
- PyMongo. Otherwise you can download the project source and do **python
73
- setup.py install ** to install.
69
+ PyMongo can be installed with `pip <http://pypi.python.org/pypi/pip >`_::
70
+
71
+ $ python -m pip install pymongo
72
+
73
+ Or ``easy_install `` from
74
+ `setuptools <http://pypi.python.org/pypi/setuptools >`_::
75
+
76
+ $ python -m easy_install pymongo
77
+
78
+ You can also download the project source and do::
79
+
80
+ $ python setup.py install
74
81
75
82
Do **not ** install the "bson" package. PyMongo comes with its own bson package;
76
83
doing "easy_install bson" installs a third-party package that is incompatible
@@ -79,32 +86,39 @@ with PyMongo.
79
86
Dependencies
80
87
============
81
88
82
- The PyMongo distribution is supported and tested on Python 2.x (where
83
- x >= 6) and Python 3.x (where x >= 2). PyMongo versions before 3.0 also
84
- support Python 2.4, 2.5, and 3.1.
89
+ PyMongo supports Python 2.6, 2.7, and 3.2+.
90
+
91
+ Optional dependencies for GSSAPI and TLS:
92
+
93
+ GSSAPI authentication requires `pykerberos
94
+ <https://pypi.python.org/pypi/pykerberos> `_ on Unix or `WinKerberos
95
+ <https://pypi.python.org/pypi/winkerberos> `_ on Windows. The correct
96
+ dependency can be installed automatically along with PyMongo::
97
+
98
+ $ python -m pip install pymongo[gssapi]
99
+
100
+ TLS / SSL support may require `certifi
101
+ <https://pypi.python.org/pypi/certifi> `_ or `wincertstore
102
+ <https://pypi.python.org/pypi/wincertstore> `_ depending on the Python
103
+ version in use. The necessary dependencies can be installed along with
104
+ PyMongo::
105
+
106
+ $ python -m pip install pymongo[tls]
107
+
108
+ You can install both dependencies automatically with the following
109
+ command::
110
+
111
+ $ python -m pip install pymongo[gssapi,tls]
85
112
86
- Optional packages:
113
+ Other optional packages:
87
114
88
115
- `backports.pbkdf2 <https://pypi.python.org/pypi/backports.pbkdf2/ >`_,
89
116
improves authentication performance with SCRAM-SHA-1, the default
90
117
authentication mechanism for MongoDB 3.0+. It especially improves
91
118
performance on Python older than 2.7.8, or on Python 3 before Python 3.4.
92
- - `pykerberos <https://pypi.python.org/pypi/pykerberos >`_ is required for
93
- the GSSAPI authentication mechanism.
94
119
- `monotonic <https://pypi.python.org/pypi/monotonic >`_ adds support for
95
120
a monotonic clock, which improves reliability in environments
96
121
where clock adjustments are frequent. Not needed in Python 3.3+.
97
- - `wincertstore <https://pypi.python.org/pypi/wincertstore >`_ adds support
98
- for verifying server SSL certificates using Windows provided CA
99
- certificates on older versions of python. Not needed or used with versions
100
- of Python 2 beginning with 2.7.9, or versions of Python 3 beginning with
101
- 3.4.0.
102
- - `certifi <https://pypi.python.org/pypi/certifi >`_ adds support for
103
- using the Mozilla CA bundle with SSL to verify server certificates. Not
104
- needed or used with versions of Python 2 beginning with 2.7.9 on any OS,
105
- versions of Python 3 beginning with Python 3.4.0 on Windows, or versions
106
- of Python 3 beginning with Python 3.2.0 on operating systems other than
107
- Windows.
108
122
109
123
110
124
Additional dependencies are:
0 commit comments