No module named zlib in python 2.6?
I tried to install Python2.6(built from source) in my Debian 7 system, but
when installation finished and tried use it , I was told No module named
zlib.
I have installed both zlib1g and zlib1g-dev, and built it again but still
failed. Also, I have tried ./configure --with-zlib and ./configure
--with-zlib=/usr/include, failed.
I really got zlib.h in /usr/include/zlib.h which version is 1.2.7.
And I found this in setup.py under Python 2.6 source code:
I tried to debug to figure out why.When I jump to line 1131, it was False
and jump to line 1140. So, I was told I didn't have zlib! (Why?)
No comments:
Post a Comment