Skip to content

Commit 8216447

Browse files
Update install via uv (#836)
* Simplify header - The default index from which uv fetches packages is PyPI * Simplify codeblock - uv was designed to replace pip and so uv add is preferred over uv pip install * Update the remaining examples - Replace uv pip install by uv add - Delte from PyPI from headers * Fix examples with opt dependencies
1 parent 90ed3f0 commit 8216447

1 file changed

Lines changed: 7 additions & 9 deletions

File tree

docs/installation.rst

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -51,29 +51,27 @@ Install ``causalml`` with ``torch`` for ``CEVAE`` from ``PyPI``
5151
pip install causalml[torch]
5252
5353
54-
Install from ``PyPI`` using `uv <https://github.com/astral-sh/uv/blob/main/README.md>`_
54+
Install using `uv <https://github.com/astral-sh/uv/blob/main/README.md>`_
5555
---------------------
5656

5757
.. code-block:: bash
5858
59-
uv init myproject
60-
uv venv
61-
source .venv/bin/activate
62-
uv pip install causalml
59+
uv init
60+
uv add causalml
6361
64-
Install ``causalml`` with ``tensorflow`` for ``DragonNet`` from ``PyPI`` using `uv <https://github.com/astral-sh/uv/blob/main/README.md>`_
62+
Install ``causalml`` with ``tensorflow`` for ``DragonNet`` using `uv <https://github.com/astral-sh/uv/blob/main/README.md>`_
6563
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6664

6765
.. code-block:: bash
6866
69-
uv pip install causalml[tf]
67+
uv add "causalml[tf]"
7068
71-
Install ``causalml`` with ``torch`` for ``CEVAE`` from ``PyPI`` using `uv <https://github.com/astral-sh/uv/blob/main/README.md>`_
69+
Install ``causalml`` with ``torch`` for ``CEVAE`` using `uv <https://github.com/astral-sh/uv/blob/main/README.md>`_
7270
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
7371

7472
.. code-block:: bash
7573
76-
uv pip install causalml[torch]
74+
uv add "causalml[torch]"
7775
7876
7977

0 commit comments

Comments
 (0)