# Unable to create spaces directly from pip packages!

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Funable-to-create-spaces-directly-from-pip-packages%2F148024%3E%5C
**Category:** Spaces\
**Created:** [March 30, 2025, 2:28am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Funable-to-create-spaces-directly-from-pip-packages%2F148024 "2025-03-30T02:28:21Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ikmalsaid](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/ikmalsaid/32/44235_2.png) [@ikmalsaid](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fikmalsaid)%5C
**Post date:** [March 30, 2025, 2:28am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Funable-to-create-spaces-directly-from-pip-packages%2F148024%2F1 "2025-03-30T02:28:21Z")

</div>

For the past two days, some of my Gradio spaces have been failing with localhost network errors, preventing restarts. This occurs because I install custom pip packages with dependencies via `requirements.txt`. While uploading the source package and dependencies directly resolves the issue, I’d prefer the `requirements.txt` method to work. I already filled all the required environment variables so it is not related to API key related errors.

Affected spaces (now working with source upload):

- [CitraIlmu - a Hugging Face Space by ikmalsaid](https://huggingface.co/spaces/ikmalsaid/CitraIlmu)

My pip packages:

- [Client Challenge](https://pypi.org/project/citrailmu/)

---

<div class="post-metadata">

**Author:** ![John6666](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/john6666/32/27664_2.png) [@John6666](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FJohn6666)%5C
**Post date:** [March 30, 2025, 4:33am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Funable-to-create-spaces-directly-from-pip-packages%2F148024%2F2 "2025-03-30T04:33:12Z")

</div>

Is it fixed itself…?

> **[CitraIlmu - a Hugging Face Space by John6666](https://huggingface.co/spaces/John6666/CitraIlmu)**
>
> Convert lectures/talks from video/audio/YouTube into text

---

<div class="post-metadata">

**Author:** ![John6666](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/john6666/32/27664_2.png) [@John6666](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FJohn6666)%5C
**Post date:** [March 30, 2025, 4:34am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Funable-to-create-spaces-directly-from-pip-packages%2F148024%2F3 "2025-03-30T04:34:21Z")

</div>

I tried installing it from pip now, and it worked without any problems. Of course, it doesn’t actually work because I don’t have an API key…  
John6666/CitraIlmu

---

<div class="post-metadata">

**Author:** ![ikmalsaid](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/ikmalsaid/32/44235_2.png) [@ikmalsaid](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fikmalsaid)%5C
**Post date:** [March 30, 2025, 6:46am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Funable-to-create-spaces-directly-from-pip-packages%2F148024%2F4 "2025-03-30T06:46:03Z")

</div>

I forgot to include that I already filled all the required environment variables.

---

<div class="post-metadata">

**Author:** ![ikmalsaid](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/ikmalsaid/32/44235_2.png) [@ikmalsaid](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fikmalsaid)%5C
**Post date:** [March 30, 2025, 6:48am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Funable-to-create-spaces-directly-from-pip-packages%2F148024%2F5 "2025-03-30T06:48:56Z")

</div>

Wow, you are right. It works on yours!
