# How to specify the pip version?

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fhow-to-specify-the-pip-version%2F15404%3E%5C
**Category:** Spaces\
**Created:** [March 6, 2022, 9:08am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fhow-to-specify-the-pip-version%2F15404 "2022-03-06T09:08:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![cansik](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/cansik/32/17307_2.png) [@cansik](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fcansik)%5C
**Post date:** [March 6, 2022, 9:08am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fhow-to-specify-the-pip-version%2F15404%2F1 "2022-03-06T09:08:20Z")

</div>

Please add the possibility to specify the pip version in the readme. It seems that newer versions (`22.0.1>`) break compatibility:

[https://github.com/readthedocs/readthedocs.org/issues/8864](https://github.com/readthedocs/readthedocs.org/issues/8864)

As an example, it could look like this:

```nohighlight
---
python_version: 3.8.9
pip_version: 21.3.1
---

```

---

<div class="post-metadata">

**Author:** ![jannisborn](https://avatars.discourse-cdn.com/v4/letter/j/a8b319/32.png) [@jannisborn](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fjannisborn)%5C
**Post date:** [February 23, 2023, 12:30pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fhow-to-specify-the-pip-version%2F15404%2F3 "2023-02-23T12:30:48Z")

</div>

This can be done in a separate file that you have to call `pre-requirements.txt`.

For further info read here: [Handling Spaces Dependencies](https://huggingface.co/docs/hub/spaces-dependencies)
