# How to add pip command parameter in gradio space

**URL:** <https://discuss.huggingface.co/t/how-to-add-pip-command-parameter-in-gradio-space/47213>\
**Category:** Spaces\
**Created:** [July 18, 2023, 2:22pm UTC](https://discuss.huggingface.co/t/how-to-add-pip-command-parameter-in-gradio-space/47213 "2023-07-18T14:22:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lycoris53](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/lycoris53/32/17716_2.png) [@Lycoris53](https://discuss.huggingface.co/u/Lycoris53)\
**Post date:** [July 18, 2023, 2:22pm UTC](https://discuss.huggingface.co/t/how-to-add-pip-command-parameter-in-gradio-space/47213/1 "2023-07-18T14:22:14Z")

</div>

On my space here,

[https://huggingface.co/spaces/Lycoris53/test\_build](https://huggingface.co/spaces/Lycoris53/test_build)

Since today Cython3.0 release, I could not get pyopenjtalk to compile.  
Current solution is to add --no-build-isolation when calling pip.  
It seems that I cannot add this command in the requirements.txt.

How do I modify the command calling the pip in the gradio spaces?  
Any help is appreciate.

---

<div class="post-metadata">

**Author:** ![Lycoris53](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/lycoris53/32/17716_2.png) [@Lycoris53](https://discuss.huggingface.co/u/Lycoris53)\
**Post date:** [July 19, 2023, 5:21am UTC](https://discuss.huggingface.co/t/how-to-add-pip-command-parameter-in-gradio-space/47213/2 "2023-07-19T05:21:23Z")

</div>

Solved, I changed the space configuration from gradio space to docker space and config pip command to use --no-build-isolation.

I didn’t know before that you can change the space type just by changing Readme file.

---

<div class="post-metadata">

**Author:** ![radames](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/radames/32/28246_2.png) [@radames](https://discuss.huggingface.co/u/radames)\
**Post date:** [July 19, 2023, 10:25am UTC](https://discuss.huggingface.co/t/how-to-add-pip-command-parameter-in-gradio-space/47213/3 "2023-07-19T10:25:23Z")

</div>

perfect, this was the best approach indeed, if you use a specific pip command, you can’t overwrite the base Dockerfile for the Gradio SDK, so we recommend using the a Dockerfile, for example

> **[Dockerfile · SpacesExamples/Gradio-Docker-Template at main](https://huggingface.co/spaces/SpacesExamples/Gradio-Docker-Template/blob/main/Dockerfile)**
>
> We’re on a journey to advance and democratize artificial intelligence through open source and open science.
