“SSLError: The read operation timed out” when using pip

Downloading/unpacking Django>=1.5.1,<1.6 (from -r requirements.txt (line 1))

Downloading Django-1.5.4.tar.gz (8.1MB): 8.0MB downloaded

Cleaning up...

Exception:

Traceback (most recent call last):

File "/vagrant/venv/local/lib/python2.7/site-packages/pip/basecommand.py", line 134, in main

status = self.run(options, args)

File "/vagrant/venv/local/lib/python2.7/site-packages/pip/commands/install.py", line 236, in run

requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)

File "/vagrant/venv/local/lib/python2.7/site-packages/pip/req.py", line 1092, in prepare_files

self.unpack_url(url, location, self.is_download)

File "/vagrant/venv/local/lib/python2.7/site-packages/pip/req.py", line 1238, in unpack_url

retval = unpack_http_url(link, location, self.download_cache, self.download_dir)

File "/vagrant/venv/local/lib/python2.7/site-packages/pip/download.py", line 622, in unpack_http_url

download_hash = _download_url(resp, link, temp_location)

File "/vagrant/venv/local/lib/python2.7/site-packages/pip/download.py", line 495, in _download_url

chunk = resp.read(4096)

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)

SSLError: The read operation timed out

 

Storing complete log in /home/vagrant/.pip/pip.log

This used to happen to me from time to time, but now I can‘t install anything. I tried adding --timeout=600, but it fails in the same amount of time (a few seconds after reaching 8.0M). Any idea on how to solve this?

pip --default-timeout=100 install django

时间: 2025-01-01 20:47:59

“SSLError: The read operation timed out” when using pip的相关文章

open-falcon 安装Dashboard时候报错&quot;SSLError: The read operation timed out&quot;

在部署open-falcon环境过程中,安装Dashboard时候报错"SSLError: The read operation timed out".如下: [[email protected] dashboard]# ./env/bin/pip install -r pip_requirements.txt Downloading/unpacking Flask==0.10.1 (from -r pip_requirements.txt (line 1)) Downloading

TNS-12535: TNS:operation timed out (WARNING: inbound connection timed out (ORA-3136))

问题原因: Fatal NI connect error 12170.  VERSION INFORMATION:        TNS for Linux: Version 11.2.0.3.0 - Production        Oracle Bequeath NT Protocol Adapter for Linux: Version 11.2.0.3.0 - Production        TCP/IP NT Protocol Adapter for Linux: Version

TNS-12535: TNS:operation timed out以及TNS-00505: Operation timed out的处理

序言:查看alert日志,发现很多报错信息:[[email protected] trace]$ more alert_powerdes.log *********************************************************************** *********************************************************************** Fatal NI connect error 12170. VER

TNS-12535: TNS:operation timed out、TNS-00505: Operation timed out

在查看alert日志的时候发现: 1 *********************************************************************** 2 3 Fatal NI connect error 12170. 4 5 VERSION INFORMATION: 6 TNS for Linux: Version 11.2.0.1.0 - Production 7 Oracle Bequeath NT Protocol Adapter for Linux: Ve

TNS-12535: TNS:operation timed out案例解析

一数据库突然连接不上,在自己电脑上使用SQL Developer也连接不上.立即使用SecureCRT连接上了这台服务器,从下面几个方面检查. 1:检查了数据库的状态是否正常 $ sqlplus / as sysdba   SQL*Plus: Release 10.2.0.5.0 - Production on Mon May 16 11:07:55 2016   Copyright (c) 1982, 2010, Oracle.  All Rights Reserved.     Connec

服务器22端口连接超时 ssh: connect to host *** port 22: Operation timed out

最近酸酸乳出问题,连接v社服务器发现碰到 ssh: connect to host master port 22: Connection timed out 的问题.现在对该问题做一下可能出现的问题 的总结和解决办法: 一.IP配置错误. 当出现上述错误时,首先检查网络连通情况,Ping一下远程登录的目标主机,如果ping不通,很有可能 是/etc/hosts文件中的IP地址映射出现问题,需要仔细检查名称和IP地址的映射关系. 二.防火墙问题. 当发现IP配置没有错误时,我们需要检查端口是否被防

ansible install

简介: 引用官方介绍,ansible 是IT自动化工具.它可以配置系统,部署软件和编排高级IT任务,例如连续部署或零停机更新. ansible 主要目标是简单易用,同时还强调安全性和可靠性. ansible 适用于所有类型人员使用:开发人员.系统管理员.发布人员.IT经理中的任何人.ansible适用于管理所有环境,少量实例到上千实例设置. ansible 通过openssh 以无代理方式管理机器.永远不会有如何升级远程守护程序或无法管理系统的问题. ansible 公司大约每两个月发布一个新的

使用国内镜像通过pip安装python的一些包 Cannot fetch index base URL http://pypi.python.org/simple/

原文地址:http://www.xuebuyuan.com/1157602.html 学习flask,安装virtualenv环境,这些带都ok,但是一安装包总是出错无法安装, 比如这样超时的问题: (env)[email protected]:~/flask_study/venv-test/test$ easy_install Flask-SQLAlchemy Searching for Flask-SQLAlchemy Reading http://pypi.python.org/simpl

openstack docker build error

1. _proto_tcp = socket.getprotobyname('tcp') OSError: protocol not found you should have a /etc/protocols file. It must have been deleted somehow. It comes from the netbase package. apt install -y netbase 2. File "/usr/local/lib/python2.7/dist-packag