在windows 上安装python的模块有时报错:
C:Usersluohui>pip install zope.interface
Downloading/unpacking zope.interface
Cleaning up...
Exception:
Traceback (most recent call last):
File "C:Python27libsite-packagespip-1.5.6-py2.7.eggpipbasecommand.py", l
ine 122, in main
status = self.run(options, args)
File "C:Python27libsite-packagespip-1.5.6-py2.7.eggpipcommandsinstall.p
y", line 278, in run
requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundl
e=self.bundle)
File "C:Python27libsite-packagespip-1.5.6-py2.7.eggpipreq.py", line 1197
, in prepare_files
do_download,
File "C:Python27libsite-packagespip-1.5.6-py2.7.eggpipreq.py", line 1375
, in unpack_url
self.session,
File "C:Python27libsite-packagespip-1.5.6-py2.7.eggpipdownload.py", line
572, in unpack_http_url
download_hash = _download_url(resp, link, temp_location)
File "C:Python27libsite-packagespip-1.5.6-py2.7.eggpipdownload.py", line
433, in _download_url
for chunk in resp_read(4096):
File "C:Python27libsite-packagespip-1.5.6-py2.7.eggpipdownload.py", line
421, in resp_read
chunk_size, decode_content=False):
File "C:Python27libsite-packagespip-1.5.6-py2.7.eggpip_vendorrequestsp
ackagesurllib3response.py", line 240, in stream
data = self.read(amt=amt, decode_content=decode_content)
File "C:Python27libsite-packagespip-1.5.6-py2.7.eggpip_vendorrequestsp
ackagesurllib3response.py", line 187, in read
data = self._fp.read(amt)
File "C:Python27libhttplib.py", line 567, in read
s = self.fp.read(amt)
File "C:Python27libsocket.py", line 380, in read
data = self._sock.recv(left)
File "C:Python27libssl.py", line 246, in recv
return self.read(buflen)
File "C:Python27libssl.py", line 165, in read
return self._sslobj.read(len)
SSLError: The read operation timed out
Storing debug log for failure in C:Usersluohuipippip.log