解决Python报错:raise ReadTimeoutError(self._pool, None, 'Read timed out.')

情况说明:
from selenium import webbrowser ,导入模块 selenium 的时候,发现没有安装,于是用pip安装,没有安装成功,提示如下:

解决Python报错:raise ReadTimeoutError(self._pool, None, 'Read timed out.')_第1张图片

按照提示,输入了 python -m pip install --upgrade pip ,但是还是有如下报错:

解决办法

多试了几次后,发现安装进度居然百分之百, 虽然安装完成了,但是有面有大片红色的意外说明:

解决Python报错:raise ReadTimeoutError(self._pool, None, 'Read timed out.')_第2张图片

解决Python报错:raise ReadTimeoutError(self._pool, None, 'Read timed out.')_第3张图片

于是,就硬着头皮继续安装 selenium 这个模块,但是发现还是安装不了:

发现报错提示中又出现了‘timed out’,于是开始往网络方面想了,才发现,自己昨天开着的VPN没有关,断开VPN后,pip install selenium 安装成功了;

解决Python报错:raise ReadTimeoutError(self._pool, None, 'Read timed out.')_第4张图片

你可能感兴趣的:(解决Python报错:raise ReadTimeoutError(self._pool, None, 'Read timed out.'))