报错raise ReadTimeoutError(self._pool, None, “Read timed out.“)pip._vendor.urllib3.exceptions.ReadTime

问题:raise ReadTimeoutError(self._pool, None, "Read timed out.")
pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Read timed out.

ReadTimeoutError: An error occurred while installing the python library jieba

 Reason: The network speed is too slow, and the read timeout

Solution

1. Change the image source

Several mirror sources commonly used in China

1.通过清华镜像源下载
pip install --index-url https://pypi.tuna.tsinghua.edu.cn/simple jieba
2.通过豆瓣镜像源下载
pip install --index-url https://pypi.douban.com/simple jieba
3.通过阿里云镜像源下载
pip install --index-url https://mirrors.aliyun.com/pypi/simple jieba
4.通过中国科学技术大学镜像源下载
pip install --index-url https://pypi.mirrors.ustc.edu.cn/simple jieba

2. Prolong installation time

pip --default-timeout=100 install -U 库名

pip --default-timeout=100 install -U jieba

 

Guess you like

Origin blog.csdn.net/qq_63195700/article/details/128460683