Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 33 additions & 12 deletions source/get-started/download-and-install.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
venv\Scripts\activate
. venv\Scripts\activate


With the virtual environment activated, run the following command to
install the current version of {+driver-short+}:
Expand Down
Loading