gpt4 book ai didi

zlib - 不能不安装分发,zlib

转载 作者:行者123 更新时间:2023-12-04 17:55:25 27 4
gpt4 key购买 nike

起初,我只想在 python3.2 中使用 install feedparser,而它需要 Distribute。当我安装 Distribute 时

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并安装它
./configure --prefix=/usr/local/python3.2
make
sudo make install

安装后,并尝试安装 Distribute,我遇到了同样的错误。

最佳答案

最后,我通过用zlib重新安装python3.2解决了这个问题。

1 当然,你需要先安装zlib。你可以在/usr/include 中找到 zlib.h

2

./configure -with-zlib=/usr/include
make
sudo make install

来自 http://www.1stbyte.com/2005/06/26/configure-and-compile-python-with-zlib/

关于zlib - 不能不安装分发,zlib,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9328014/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com