@@ -12,7 +12,7 @@ Download and Install
12
12
Ensure you have the following dependencies installed
13
13
in your development environment:
14
14
15
- - `Python3 version 3.7 or later <https://www.python.org/downloads/>`__
15
+ - `Python3 version 3.8 or later <https://www.python.org/downloads/>`__
16
16
- `pip <https://pip.pypa.io/en/stable/installation/>`__
17
17
- `dnspython <https://pypi.org/project/dnspython/>`__
18
18
@@ -25,28 +25,49 @@ Download and Install
25
25
26
26
mkdir pymongo-quickstart
27
27
28
- Run the following command to navigate into the project
29
- directory:
28
+ Select the tab corresponding to your operating system and run the following commands
29
+ to create a ``quickstart.py`` application file in the ``pymongo-quickstart`` directory:
30
30
31
- .. code-block:: bash
31
+ .. tabs::
32
32
33
- cd pymongo-quickstart
33
+ .. tab:: macOS / Linux
34
+ :tabid: create-file-mac-linux
34
35
35
- Run the following command to create a file to contain your application:
36
+ .. code-block:: bash
36
37
37
- .. code-block:: bash
38
+ cd pymongo-quickstart
39
+ touch quickstart.py
40
+
41
+ .. tab:: Windows
42
+ :tabid: create-file-windows
38
43
39
- touch quickstart.py
44
+ .. code-block:: bash
45
+
46
+ cd pymongo-quickstart
47
+ type nul > quickstart.py
40
48
41
49
.. step:: Install {+driver-short+}
42
50
43
- Run the following commands in your shell to create and activate a virtual
44
- environment in which to install the driver:
51
+ Select the tab corresponding to your operating system and run the following commands
52
+ to create and activate a virtual environment in which to install the driver:
45
53
46
- .. code-block:: bash
54
+ .. tabs::
55
+
56
+ .. tab:: macOS / Linux
57
+ :tabid: venv-mac-linux
58
+
59
+ .. code-block:: bash
60
+
61
+ python3 -m venv venv
62
+ source venv/bin/activate
63
+
64
+ .. tab:: Windows
65
+ :tabid: venv-windows
66
+
67
+ .. code-block:: bash
47
68
48
- python3 -m venv venv
49
- source venv/bin/ activate
69
+ python3 -m venv venv
70
+ . venv\Scripts\ activate
50
71
51
72
With the virtual environment activated, run the following command to
52
73
install the current version of {+driver-short+}:
0 commit comments