Python: No Module named Zlib, Mac OS X El Capitan 10.11.6 : <p>I'm trying to convert my python command line application to an app with py2app.
Everytime I try to import zlib or try to install setuptools , I get an error : no module named zlib.</p>

<p>Python was installed with brew.
I searched every corner of the internet and stack overflow, I have reinstalled python with brew , I have installed all Xcode CLI related stuff with :</p>

<pre><code>xcode-select --install
</code></pre>

<p>I also ran :</p>

<pre><code>ls /usr/include/zlib.h
</code></pre>

<p>and I can see that zlib is there where it is supposed to be.</p>

<p>Reinstalled with:</p>

<pre><code>brew reinstall python
</code></pre>

<p>Unfortunately that didn't work for me. I can't get what is wrong.</p>

<p>Any ideas?</p>
