diff --git a/source/get-started/download-and-install.txt b/source/get-started/download-and-install.txt index 429b5ab8..c34adefe 100644 --- a/source/get-started/download-and-install.txt +++ b/source/get-started/download-and-install.txt @@ -12,7 +12,7 @@ Download and Install Ensure you have the following dependencies installed in your development environment: - - `Python3 version 3.7 or later `__ + - `Python3 version 3.8 or later `__ - `pip `__ - `dnspython `__ @@ -25,28 +25,49 @@ Download and Install mkdir pymongo-quickstart - Run the following command to navigate into the project - directory: + Select the tab corresponding to your operating system and run the following commands + to create a ``quickstart.py`` application file in the ``pymongo-quickstart`` directory: - .. code-block:: bash + .. tabs:: - cd pymongo-quickstart + .. tab:: macOS / Linux + :tabid: create-file-mac-linux - Run the following command to create a file to contain your application: + .. code-block:: bash - .. code-block:: bash + cd pymongo-quickstart + touch quickstart.py + + .. tab:: Windows + :tabid: create-file-windows - touch quickstart.py + .. code-block:: bash + + cd pymongo-quickstart + type nul > quickstart.py .. step:: Install {+driver-short+} - Run the following commands in your shell to create and activate a virtual - environment in which to install the driver: + Select the tab corresponding to your operating system and run the following commands + to create and activate a virtual environment in which to install the driver: - .. code-block:: bash + .. tabs:: + + .. tab:: macOS / Linux + :tabid: venv-mac-linux + + .. code-block:: bash + + python3 -m venv venv + source venv/bin/activate + + .. tab:: Windows + :tabid: venv-windows + + .. code-block:: bash - python3 -m venv venv - source venv/bin/activate + python3 -m venv venv + . venv\Scripts\activate With the virtual environment activated, run the following command to install the current version of {+driver-short+}: