pip_require_tls_ssl问题

salt推送报pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.

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
cmd_|-python_requirements_|-/usr/local/_python3.6.1/bin/pip3 install -r sce_requirements.txt_|-run:
----------
__run_num__:
5
changes:
----------
pid:
26431
retcode:
1
stderr:
pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
Could not find a version that satisfies the requirement psutil==5.3.0 (from -r sce_requirements.txt (line 1)) (from versions: )
No matching distribution found for psutil==5.3.0 (from -r sce_requirements.txt (line 1))
stdout:
Collecting psutil==5.3.0 (from -r sce_requirements.txt (line 1))
Could not fetch URL https://pypi.python.org/simple/psutil/: There was a problem confirming the ssl certificate: Can't connect to HTTPS URL because the SSL module is not available. - skipping
comment:
Command "/usr/local/_python3.6.1/bin/pip3 install -r sce_requirements.txt" run
duration:
514.995
name:
/usr/local/_python3.6.1/bin/pip3 install -r sce_requirements.txt
result:
False
start_time:
20:13:40.393491

应该是openssl相关的包有问题

1
2
[root@192_168_1_1 bin]# rpm -qa |grep openssl
openssl-1.0.1e-57.el6.x86_64

没有devel包

1
# yum install -y openssl-devel
坚持原创技术分享,您的支持将鼓励我继续创作!