I'm trying to convert my python command line application on macOS to an app with py2app.
Every time I try to import zlib or try to install setuptools, I get an error:
No Module named Zlib
Python was installed with brew. I have reinstalled python with brew, I have installed all Xcode CLI related stuff with:
xcode-select --install
I also ran:
ls /usr/include/zlib.h
and I can see that zlib is there where it is supposed to be.
Reinstalled with:
brew reinstall python
Unfortunately nothing has worked. How can I resolve this error?