Update development.md (#3314)

Add a command for installing the `python-dev` package

---------

Co-authored-by: Jakub Kuderski <kubakuderski@gmail.com>
pull/3328/head
Angel Zhang 2024-05-10 10:39:13 -04:00 committed by GitHub
parent e0a87e543e
commit 2c9c763191
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 9 additions and 3 deletions

View File

@ -13,9 +13,6 @@ While this is running, you can already setup the Python venv and dependencies in
## Setup your Python VirtualEnvironment and Dependencies ## Setup your Python VirtualEnvironment and Dependencies
Also, ensure that you have the appropriate `python-dev` package installed
to access the Python development libraries / headers.
```shell ```shell
python -m venv mlir_venv python -m venv mlir_venv
source mlir_venv/bin/activate source mlir_venv/bin/activate
@ -26,6 +23,15 @@ python -m pip install -r requirements.txt
python -m pip install -r torchvision-requirements.txt python -m pip install -r torchvision-requirements.txt
``` ```
Also, ensure that you have the appropriate `python-dev` package installed
to access the Python development libraries / headers. For example, you can install
it with the following `apt` command on Ubuntu/Debian.
```shell
sudo apt install python3-dev
```
## (Optional) Set up pre-commit ## (Optional) Set up pre-commit
This project uses [pre-commit](https://pre-commit.com/) in its CI. You can This project uses [pre-commit](https://pre-commit.com/) in its CI. You can