相关疑难解决方法(0)

在Ubuntu 10.4上安装Python-2.7

我似乎无法正确安装zlib,我在Ubuntu10.4上从源代码安装了Python

'######## edit #####################
bobince和Luper帮忙.
确保安装这些软件包,然后重新编译Python:
sudo aptitude install zlib1g-dev libreadline6-dev libdb4.8-dev libncurses5-dev
'##################### ############

安装后,我尝试安装setuptools.py

$ sh setuptools-0.6c11-py2.7.egg   
Traceback (most recent call last):  
  File "<string>", line 1, in <module>  
zipimport.ZipImportError: can't decompress data; zlib not available  
Run Code Online (Sandbox Code Playgroud)

然后我安装了zlib:

$ sudo aptitude install zlibc  
Reading package lists... Done  
Building dependency tree         
Reading state information... Done  
Reading extended state information        
Initializing package states... Done  
The following NEW packages will be installed:  
  zlibc   
0 packages upgraded, 1 newly installed, 0 to remove and …
Run Code Online (Sandbox Code Playgroud)

python zlib setuptools

13
推荐指数
2
解决办法
3万
查看次数

标签 统计

python ×1

setuptools ×1

zlib ×1