0

每当我尝试从 pip 安装任何包(Flask、Github-Flask、Django 甚至升级 setuptools)时,我总是会遇到这个错误:

File "/usr/lib/python2.7/socket.py", line 380, in read
    data = self._sock.recv(left)
File "/usr/lib/python2.7/httplib.py", line 561, in read
    s = self.fp.read(amt)
File "/usr/lib/python2.7/socket.py", line 380, in read
    data = self._sock.recv(left)
File "/usr/lib/python2.7/ssl.py", line 241, in recv
    return self.read(buflen)
File "/usr/lib/python2.7/ssl.py", line 160, in read
    return self._sslobj.read(len)
error: [Errno 104] Connection reset by peer

我正在使用 Kubuntu 12.04,python 2.7。我已经尝试过重新安装 python2.7 和 pip。有任何想法吗?

4

0 回答 0