Я следовал руководству на веб-сайте SDK здесь, но при установке зависимостей Python , я столкнулся с ошибкой, которую пока не могу устранить.
Например, когда я запускаю менюконфигурацию (
Код: Выделить всё
make menuconfigКод: Выделить всё
The following Python requirements are not satisfied:
pyelftools>=0.22
Код: Выделить всё
Using cached pyelftools-0.31.tar.gz (14.1 MB)
Installing build dependencies ... error
ERROR: Command errored out with exit status 1:
command: C:/msys32_espressif/mingw32/bin/python.exe C:/msys32_espressif/mingw32/lib/python2.7/site-packages/pip install --ignore-installed --no-user --prefix c:/users/asus/appdata/local/temp/pip-build-env-zjp9dh/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- 'setuptools >= 46.4.0'
cwd: None
Complete output (3 lines):
...
ERROR: No matching distribution found for setuptools>=46.4.0
Код: Выделить всё
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality.
Я пытался установить зависимости вручную, но получаю другие ошибки.< /p>
EDIT1:
Добавление --no-build-isolation решило эту проблему, решило проблему:
Код: Выделить всё
python -m pip install --no-build-isolation --user -r $IDF_PATH/requirements.txt
EDIT2:< /p>
После успешной установки зависимостей мне удалось запустить менюконфигурацию, но я обнаружил, что набор инструментов отсутствует или путь неверен. Итак, я искал решение и устранил эту ошибку следующим образом:
Первоначальная ошибка была:
Код: Выделить всё
make: xtensa-lx106-elf-gcc:
Command not found expr: syntax error: undefined argument „5.2.0“
- загрузите набор инструментов с https://docs.espressif.com/projects/esp ... setup.html
- извлеките папку в PATH:/esp
- в PATH:/etc/profile.d создайте файл с именем Export_toolchain_path.sh с кодом внутри:
Код: Выделить всё
export PATH=$PATH:/esp/xtensa-lx106-elf/bin
Тот факт, что среда не заработала у меня сразу, несмотря на то, что я следовал руководству, мог быть по многим причинам, но это решение сработало для меня.
Подробнее здесь: https://stackoverflow.com/questions/791 ... 6-rtos-sdk
Мобильная версия