# Failed to load image Python extension: Could not find module

**URL:** <https://discuss.pytorch.org/t/failed-to-load-image-python-extension-could-not-find-module/140278>\
**Category:** vision\
**Created:** [December 27, 2021, 1:45am UTC](https://discuss.pytorch.org/t/failed-to-load-image-python-extension-could-not-find-module/140278 "2021-12-27T01:45:07Z")\
**Posts on this page:** 1\
**Showing post:** 26

<div class="post-metadata">

**Author:** ![adeandrade](https://discuss.pytorch.org/user_avatar/discuss.pytorch.org/adeandrade/32/44730_2.png) [@adeandrade](https://discuss.pytorch.org/u/adeandrade)\
**Post date:** [February 24, 2022, 6:55pm UTC](https://discuss.pytorch.org/t/failed-to-load-image-python-extension-could-not-find-module/140278/26 "2022-02-24T18:55:31Z")

</div>

I solved it by installing `libpng` and `libjpeg` with Homebrew and manually adding symlinks to `/usr/local/lib`.

I still think we should address this with a ticket since PyTorch packages are supposed to come with all dependencies included.

---

_[View the full topic](https://discuss.pytorch.org/t/failed-to-load-image-python-extension-could-not-find-module/140278)._
