Page 1 of 1

ESP-idf 环境安装,报错,“HTTP error 403 ”

Posted: Sun May 14, 2023 9:25 am
by JunChen
我在ubuntu22.04 + python3.10.6中安装esp-idf环境,执行 ~/esp/esp-idf/install.sh esp32s3,esp32时,报错:

Code: Select all

  
  Using cached https://dl.espressif.cn/pypi/requests-toolbelt/requests_toolbelt-1.0.0-py2.py3-none-any.whl (51 kB)
Collecting schema (from idf-component-manager->-r /home/XXX/esp/esp-idf/tools/requirements/requirements.core.txt (line 10))
  ERROR: HTTP error 403 while getting https://dl.espressif.cn/pypi/schema/schema-0.7.5-py2.py3-none-any.whl (from https://dl.espressif.cn/pypi/schema/)
ERROR: Could not install requirement schema from https://dl.espressif.cn/pypi/schema/schema-0.7.5-py2.py3-none-any.whl (from idf-component-manager->-r /home/XXX/esp/esp-idf/tools/requirements/requirements.core.txt (line 10)) because of HTTP error 403 Client Error: Forbidden for url: https://dl.espressif.cn/pypi/schema/schema-0.7.5-py2.py3-none-any.whl for URL https://dl.espressif.cn/pypi/schema/schema-0.7.5-py2.py3-none-any.whl (from https://dl.espressif.cn/pypi/schema/)
安装esp-idf的版本也换了几个,5.0,4.4都不行。

直接访问链接: https://dl.espressif.cn/pypi/schema/sch ... ne-any.whl
也是报错
403 Forbidden
Code: AccessDenied
Message: Access Denied
RequestId: J1QMX2H5ZEDAZP91
HostId: U0AJGLfotszhVxs0WVPjEl+LgCOZRlhB1LWWafBHUV+dw0XtZsclgvPkUpAACsBk

是网站权限的问题吧??

Re: ESP-idf 环境安装,报错,“HTTP error 403 ”

Posted: Tue May 16, 2023 5:57 am
by ESP_Gargamel
1、请确认是否设置过 IDF_PIP_WHEELS_URL 环境变量,echo $IDF_PIP_WHEELS_URL 看一下,如果有的话,去除;
2、或者重新 export IDF_PIP_WHEELS_URL=https://dl.espressif.com/pypi
3、或者 touch ~/.pip/pip.conf,里面加上

Code: Select all

[global]
index-url = https://mirrors.aliyun.com/pypi/simple
trusted-host = mirrors.aliyun.com
cn 的域名当前访问有点问题。