一、setuptools安装错误:RuntimeError: Compression requires the (missing) zlib module

1. 描述

搞了个腾讯云的服务器,闲在手上没事准备当个测试机用用,写写代码什么的。然后按照之前写的文章安装了python2.7,安装的中途出现了一个错误:

 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
install
bdist_egg
egg_info
.txt
INFO
.txt
.txt
.txt
egg
install_lib
build_py
INFO
INFO
INFO
INFO
INFO
INFO
it
:
>
)
setup
)
run_commands
)
run_command
)
run
)
do_egg_install
)
run_command
)
run_command
)
run
)
_zipfile
)
_
module

其实错误一眼就能看出是缺少了zlib库,然后使用yum install zlib zlib-devel安装了库之后python setup.py install 发现还是一样报错。

2. 解决方法

装好zlib相关库之后把把python重新安装一遍,进入到源码目录:

 
1
2
devel
install

 

二、setuptools错误:pkg_resources.DistributionNotFound: The "distribute==0.6.10" distribution was not found and is required by the application    [2017-10-21添加]

1. 描述

安装完setuptools准备使用时报错:

 
1
2
3
4
5
6
7
8
9
10
:
>
load_entry_point
>
_call_aside
_initialize_master_working_set
_build_master
_build_from_requirements
resolve
application

 

2. 解决方法

缺少distribute模块,使用pip安装也装不上,需要在官网下载源码安装。

 
1
2
3
4
0.6.10.tar.gz
0.6.10.tar.gz
0.6.10
install

 

三、pip报错:pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.    [2017-10-21添加]

1. 错误描述

使用pip安装shadowsocks的时候报错:

 
1
2
3
4
5
.
shadowsocks
)
shadowsocks

 

2. 解决方法

系统缺少openssl-devel包,使用yum install openssl-devel安装。

然后重新安装python:进入python源码目录,make && make install,解决。

相关文章:

  • 2021-08-07
  • 2021-09-10
  • 2022-12-23
  • 2021-07-02
  • 2021-12-22
  • 2022-01-04
  • 2021-10-06
猜你喜欢
  • 2022-01-07
  • 2022-02-20
  • 2021-09-06
  • 2022-12-23
  • 2021-08-04
  • 2022-12-23
  • 2022-01-28
相关资源
相似解决方案