Browse Source

📝 Update contributing guidelines for installing requirements (#14095)

pull/14096/head
Alejandra 3 days ago
committed by GitHub
parent
commit
2eca83fbda
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 22
      docs/en/docs/contributing.md

22
docs/en/docs/contributing.md

@ -10,10 +10,12 @@ If you already cloned the <a href="https://github.com/fastapi/fastapi" class="ex
Follow the instructions to create and activate a [virtual environment](virtual-environments.md){.internal-link target=_blank} for the internal code of `fastapi`. Follow the instructions to create and activate a [virtual environment](virtual-environments.md){.internal-link target=_blank} for the internal code of `fastapi`.
### Install requirements using pip ### Install requirements
After activating the environment, install the required packages: After activating the environment, install the required packages:
//// tab | `pip`
<div class="termy"> <div class="termy">
```console ```console
@ -24,6 +26,24 @@ $ pip install -r requirements.txt
</div> </div>
////
//// tab | `uv`
If you have <a href="https://github.com/astral-sh/uv" class="external-link" target="_blank">`uv`</a>:
<div class="termy">
```console
$ uv pip install -r requirements.txt
---> 100%
```
</div>
////
It will install all the dependencies and your local FastAPI in your local environment. It will install all the dependencies and your local FastAPI in your local environment.
### Using your local FastAPI ### Using your local FastAPI

Loading…
Cancel
Save