# Error when installing requirements for django tests - fatal error: 'libmemcached/memcached.h' file not found #include \<libmemcached/memcached.h\>

**URL:** <https://forum.djangoproject.com/t/error-when-installing-requirements-for-django-tests-fatal-error-libmemcached-memcached-h-file-not-found-include-libmemcached-memcached-h/1685>\
**Category:** Django Internals\
**Created:** [March 27, 2020, 1:33pm UTC](https://forum.djangoproject.com/t/error-when-installing-requirements-for-django-tests-fatal-error-libmemcached-memcached-h-file-not-found-include-libmemcached-memcached-h/1685 "2020-03-27T13:33:34Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![shangxiao](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/shangxiao/32/10313_2.png) [@shangxiao](https://forum.djangoproject.com/u/shangxiao)\
**Post date:** [October 27, 2023, 8:53am UTC](https://forum.djangoproject.com/t/error-when-installing-requirements-for-django-tests-fatal-error-libmemcached-memcached-h-file-not-found-include-libmemcached-memcached-h/1685/8 "2023-10-27T08:53:34Z")

</div>

FYI with homebrew now located in /opt/homebrew I had to let pip know where to find it:

```auto
LIBMEMCACHED=/opt/homebrew pip install pylibmc

```

---

_[View the full topic](https://forum.djangoproject.com/t/error-when-installing-requirements-for-django-tests-fatal-error-libmemcached-memcached-h-file-not-found-include-libmemcached-memcached-h/1685)._
