Python Pillow not installing under OSX
<p>I am trying to install the Python Pillow library and I am getting the following error:</p>

<pre><code>ValueError: zlib is required unless explicitly disabled using --disable-zlib, aborting
</code></pre>

<p>I followed the thread to try to fix it: <a href="https://stackoverflow.com/questions/34631806/fail-during-installation-of-pillow-python-module-in-linux">Fail during installation of Pillow (Python module) in Linux</a></p>

<p>The problem is that it seems to still not be able to find zlib, which I installed via homebrew.</p>

<p>I did a check to see if it was installed:</p>

<pre><code>&gt; brew search zlib
homebrew/dupes/zlib ✔                                        lzlib
</code></pre>

<p>I noticed it is in a different location than a standard brew install ("homebrew/dupes/zlib").  I tried to do an uninstall/reinstall and it puts it back in the same place ("homebrew/dupes/zlib").  The problem seems to be the installer/compiler just can't find it in that location.</p>

<p>My question is, Is there a way to either alias the lib path, point the installer to this lib location or clear it out completely from home-brew to re-install it clean just as zlib?  What is the best route to take on this?</p>

<p>Thanks,
RB</p>