pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Read timed out.

引用文章:PIP 更换国内安装源_pip换源-CSDN博客

原因:pip安装源连接失败

处理方式:换成国内源

1 cmd+r

2 %HOMEPATH%

3 新建文件夹pip

4 新建文件pip.ini,输入如下内容:

[global]
timeout = 6000
index-url = https://pypi.tuna.tsinghua.edu.cn/simple
trusted-host = pypi.tuna.tsinghua.edu.cn

5 重新安装后发现源已经换掉了,最后安装成功。

参考:

ESP-IDF4.4 VScode安装问题 - 千樊 - 博客园 (cnblogs.com)

VSCode安装ESP-IDF失败 - ESP32 Forum

Logo

汇聚全球AI编程工具,助力开发者即刻编程。

更多推荐