Skip to content

DOCSP-43238: Add Windows installation instructions #105

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Sep 3, 2024
Merged
Changes from all commits
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
47 changes: 34 additions & 13 deletions source/get-started/download-and-install.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Download and Install
Ensure you have the following dependencies installed
in your development environment:

- `Python3 version 3.7 or later <https://www.python.org/downloads/>`__
- `Python3 version 3.8 or later <https://www.python.org/downloads/>`__
- `pip <https://pip.pypa.io/en/stable/installation/>`__
- `dnspython <https://pypi.org/project/dnspython/>`__

Expand All @@ -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+}:
Expand Down
Loading