声明:下面是在国外论坛上看到的
I found a solution myself! Proud moment for me and I shall post my solution in case someone else has the same issue.
I had to download zlib from http://zlib.net and compile it first. The headers were installed to /usr/local/include.
Then I had to compile Python from source, i.e.
./configure -with-zlib=/usr/local/include –prefix=/opt/python3.4
make
sudo make install
After that I installed setuptools and pip manually. Hope it helps someone.