【pip安装时出现一大片红色报错】 raise ReadTimeoutError(self._pool, None, “Read timed out.”)
- 问题描述:pip 安装包时出现一大片莫名其妙的报错
raise ReadTimeoutError(self._pool, None, “Read timed out.”)
pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host=‘download.pytorch.org’, port=443): Read timed out.
pip install torch==1.13.1+cu116 torchvision==0.14.1+cu116 torchaudio==0.13.1 --extra-index-url https://download.pytorch.org/whl/cu116
- 解决方法:在后面加上指定源-i https://pypi.doubanio.com/simple
-i https://pypi.doubanio.com/simple
安装成功!