# RuntimeError: Package hunspell was not found in the pkg-config search path

**URL:** <https://discuss.huggingface.co/t/runtimeerror-package-hunspell-was-not-found-in-the-pkg-config-search-path/44293>\
**Category:** 🔒 Gradio\
**Created:** [June 23, 2023, 8:48am UTC](https://discuss.huggingface.co/t/runtimeerror-package-hunspell-was-not-found-in-the-pkg-config-search-path/44293 "2023-06-23T08:48:18Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![xiomarablanco](https://avatars.discourse-cdn.com/v4/letter/x/ba8739/32.png) [@xiomarablanco](https://discuss.huggingface.co/u/xiomarablanco)\
**Post date:** [June 23, 2023, 8:48am UTC](https://discuss.huggingface.co/t/runtimeerror-package-hunspell-was-not-found-in-the-pkg-config-search-path/44293/1 "2023-06-23T08:48:18Z")

</div>

Good morning,

I get a build error when trying to build an app that used to work fine three weeks ago.

 ![image](https://us1.discourse-cdn.com/hellohellohello/original/3X/d/9/d91473826d72dda1c81891c4e32c26cc4f713154.png)

My requirements file is the following:  
datasets==2.7.1  
Flask==2.0.1  
gradio==3.23.0  
matplotlib==3.5.1  
nltk==3.6.5  
numpy  
pandas==1.3.4  
scikit\_learn==1.2.2  
seaborn==0.12.2  
sentence\_transformers==2.2.2  
spacy==3.4.4  
torch==1.13.1  
yake==0.4.8  
CyHunspell  
[https://github.com/explosion/spacy-models/releases/download/es\_core\_news\_sm-3.4.0/es\_core\_news\_sm-3.4.0.tar.gz](https://github.com/explosion/spacy-models/releases/download/es_core_news_sm-3.4.0/es_core_news_sm-3.4.0.tar.gz)  
openpyxl  
tablib

I need help please.

---

<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:** [June 25, 2023, 1:11am UTC](https://discuss.huggingface.co/t/runtimeerror-package-hunspell-was-not-found-in-the-pkg-config-search-path/44293/2 "2023-06-25T01:11:29Z")

</div>

hi @xiomarablanco ,

sorry could you please share a full Space example?  
additionally you can try adding a `pre-requirements.txt` with `pip` on it and check if with the latest `pip` this would help.  
You can also specify `packages.txt` with system packages if something is missing

---

<div class="post-metadata">

**Author:** ![xiomarablanco](https://avatars.discourse-cdn.com/v4/letter/x/ba8739/32.png) [@xiomarablanco](https://discuss.huggingface.co/u/xiomarablanco)\
**Post date:** [June 26, 2023, 2:36pm UTC](https://discuss.huggingface.co/t/runtimeerror-package-hunspell-was-not-found-in-the-pkg-config-search-path/44293/3 "2023-06-26T14:36:04Z")

</div>

Hi Radames,

My space is this: [https://huggingface.co/spaces/xiomarablanco/plentas](https://huggingface.co/spaces/xiomarablanco/plentas).  
I thank you for all the information, but it still doesn’t work.

Best regards,

---

<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:** [June 30, 2023, 6:13pm UTC](https://discuss.huggingface.co/t/runtimeerror-package-hunspell-was-not-found-in-the-pkg-config-search-path/44293/4 "2023-06-30T18:13:50Z")

</div>

hi @xiomarablanco ,  
Sent you a [PR](https://huggingface.co/spaces/xiomarablanco/plentas/discussions/2),  
But recently we’ve switch the default Python on Spaces to 3.10. I’ve added `python_version: 3.9` to your Space and it works.
