# Trouble building space, missing rust for tokenizers

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ftrouble-building-space-missing-rust-for-tokenizers%2F42778%3E%5C
**Category:** Spaces\
**Created:** [June 10, 2023, 4:42pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ftrouble-building-space-missing-rust-for-tokenizers%2F42778 "2023-06-10T16:42:05Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![pharma](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/pharma/32/16741_2.png) [@pharma](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fpharma)%5C
**Post date:** [June 10, 2023, 4:42pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ftrouble-building-space-missing-rust-for-tokenizers%2F42778%2F1 "2023-06-10T16:42:05Z")

</div>

My space [CLIP Interrogator - a Hugging Face Space by pharma](https://huggingface.co/spaces/pharma/CLIP-Interrogator) seems to have died yesterday and restart and factory reboot fails as it tries installing the `tokenizers` dependency and fails with missing rust compiler.

```auto
Building wheel for tokenizers (pyproject.toml) did not run successfully.
...
error: can't find Rust compiler

```

Is this from a change to base image spaces use or something? I’ve tired pinning and rolling back to some older versions of the requirements but without success so far.

---

<div class="post-metadata">

**Author:** ![radames](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/radames/32/28246_2.png) [@radames](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fradames)%5C
**Post date:** [June 10, 2023, 10:26pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ftrouble-building-space-missing-rust-for-tokenizers%2F42778%2F2 "2023-06-10T22:26:02Z")

</div>

hi @pharma ,  
we’ve recently changed the default Python on Spaces to 3.10, not sure why the rust issue now, however we can rollback the Python version to 3.9 on your Space and it sees to fix the issue  
I send you a PR

> **[pharma/CLIP-Interrogator · roll back python version](https://huggingface.co/spaces/pharma/CLIP-Interrogator/discussions/498)**
>
> We’re on a journey to advance and democratize artificial intelligence through open source and open science.

---

<div class="post-metadata">

**Author:** ![pharma](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/pharma/32/16741_2.png) [@pharma](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fpharma)%5C
**Post date:** [June 11, 2023, 3:58pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ftrouble-building-space-missing-rust-for-tokenizers%2F42778%2F3 "2023-06-11T15:58:12Z")

</div>

Thank you! Yes that fixes it.

---

<div class="post-metadata">

**Author:** ![Papajams](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/papajams/32/17010_2.png) [@Papajams](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FPapajams)%5C
**Post date:** [June 22, 2023, 1:13pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ftrouble-building-space-missing-rust-for-tokenizers%2F42778%2F4 "2023-06-22T13:13:28Z")

</div>

Same issue! New here so forgive me but

running build\_rust  
error: can’t find Rust compiler

Failed to build tokenizers  
ERROR: Could not build wheels for tokenizers, which is required to install pyproject.toml-based projects

---

<div class="post-metadata">

**Author:** ![radames](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/radames/32/28246_2.png) [@radames](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fradames)%5C
**Post date:** [June 22, 2023, 10:46pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ftrouble-building-space-missing-rust-for-tokenizers%2F42778%2F5 "2023-06-22T22:46:44Z")

</div>

hi @Papajams please try changing the python version on the readme.md

e.g. `python_version: 3.9.13`

---

<div class="post-metadata">

**Author:** ![Papajams](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/papajams/32/17010_2.png) [@Papajams](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FPapajams)%5C
**Post date:** [June 23, 2023, 10:51am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ftrouble-building-space-missing-rust-for-tokenizers%2F42778%2F6 "2023-06-23T10:51:28Z")

</div>

hello! thanks for coming back to me. That doesn’t seem to work sadly, would have loved such a simple solution. [Metaphorize - a Hugging Face Space by Papajams](https://huggingface.co/spaces/Papajams/metaphorize)

Does it matter what python version I am running on my own computer? I downgraded from 3.11 to 3.8 and still no dice on hugging faces spaces. Appreciate your guidance!

---

<div class="post-metadata">

**Author:** ![ivyblossom](https://avatars.discourse-cdn.com/v4/letter/i/f475e1/32.png) [@ivyblossom](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fivyblossom)%5C
**Post date:** [July 24, 2023, 1:24am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ftrouble-building-space-missing-rust-for-tokenizers%2F42778%2F7 "2023-07-24T01:24:48Z")

</div>

@radames I encountered this issue as well in [https://huggingface.co/spaces/ivyblossom/patentability](https://huggingface.co/spaces/ivyblossom/patentability)  
I already tried downgrading the python\_version to the following versions but getting an issue with building wheel for pandas:

- 3.9.13
- 3.8.17
- 3.8.13
- 3.7.17

---

<div class="post-metadata">

**Author:** ![gtm94](https://avatars.discourse-cdn.com/v4/letter/g/97f17d/32.png) [@gtm94](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fgtm94)%5C
**Post date:** [December 9, 2023, 11:31pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ftrouble-building-space-missing-rust-for-tokenizers%2F42778%2F8 "2023-12-09T23:31:47Z")

</div>

Anybody resolve this issue?

---

<div class="post-metadata">

**Author:** ![radames](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/radames/32/28246_2.png) [@radames](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fradames)%5C
**Post date:** [December 11, 2023, 6:05pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ftrouble-building-space-missing-rust-for-tokenizers%2F42778%2F9 "2023-12-11T18:05:41Z")

</div>

are you having this issue with CLIP Interrogator? Could you please share a public Space, thanks
