无法安装Distribute,zlib [英] can't not install Distribute, zlib
本文介绍了无法安装Distribute,zlib的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
首先,我只想将install feedparser与python3.2一起使用,而它需要Distribute.当我使用
At first, I only want to use install feedparser with python3.2, while it need Distribute. When I install Distribute with
python3.2 setup.py install
我知道了
File "/usr/local/lib/python3.2/zipfile.py", line 687, in __init__
"Compression requires the (missing) zlib module")
RuntimeError: Compression requires the (missing) zlib module
然后我下载了 zlib 并将其安装到
Then I downloaded zlib and installed it with
./configure --prefix=/usr/local/python3.2
make
sudo make install
安装后,尝试安装Distribute,我遇到了同样的错误.
After the installation, and tried to install Distribute, I got the same error.
推荐答案
最后,我通过使用zlib重新安装python3.2来解决了这个问题.
Finally, I solved it by re-install python3.2 with zlib.
1当然,您需要首先安装zlib.您可以在/usr/include
1 Of course, you need to install zlib first. and you can find zlib.h in /usr/include
2
./configure -with-zlib=/usr/include
make
sudo make install
来自 http://www. 1stbyte.com/2005/06/26/configure-and-compile-python-with-zlib/
这篇关于无法安装Distribute,zlib的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文