老师你看一下哦这是什么问题 我用的centos7.5 python3.6

来源:1-1 自动化运维开发实战课程导学

扎根儿呦

2018-12-22

Traceback (most recent call last):
File “/usr/local/python/lib/python3.6/site-packages/pip/_vendor/urllib3/response.py”, line 331, in _error_catcher
yield
File “/usr/local/python/lib/python3.6/site-packages/pip/_vendor/urllib3/response.py”, line 413, in read
data = self._fp.read(amt)
File “/usr/local/python/lib/python3.6/site-packages/pip/_vendor/cachecontrol/filewrapper.py”, line 62, in read
data = self.__fp.read(amt)
File “/usr/local/python/lib/python3.6/http/client.py”, line 449, in read
n = self.readinto(b)
File “/usr/local/python/lib/python3.6/http/client.py”, line 493, in readinto
n = self.fp.readinto(b)
File “/usr/local/python/lib/python3.6/socket.py”, line 586, in readinto
return self._sock.recv_into(b)
File “/usr/local/python/lib/python3.6/ssl.py”, line 1002, in recv_into
return self.read(nbytes, buffer)
File “/usr/local/python/lib/python3.6/ssl.py”, line 865, in read
return self._sslobj.read(len, buffer)
File “/usr/local/python/lib/python3.6/ssl.py”, line 625, in read
v = self._sslobj.read(len, buffer)
socket.timeout: The read operation timed out

写回答

1回答

Jeson

2018-12-23

你好,这个问题是urllib调用的https的一个请求地址,但你的系统上之前没有支持openssl,所以,你需要重新安装openssl-devel模块,然后重新编译安装python后再试试

0
0

Python+Django+Ansible Playbook自动化运维项目实战

【课程升级3.6版本】大牛全面践行DevOps,运维与开发间高效协作

861 学习 · 326 问题

查看课程