espressif / ESP8266_RTOS_SDK

Latest ESP8266 SDK based on FreeRTOS, esp-idf style.
http://bbs.espressif.com
Apache License 2.0
3.35k stars 1.57k forks source link

requirements.txt not found (GIT8266O-830) #1254

Closed ZephyrKeXiner closed 4 months ago

ZephyrKeXiner commented 1 year ago

Environment

Problem Description

When I run the command 'python -m pip install --user -r $IDF_PATH/requirements.txt',the output is ''ERROR: Could not open requirements file: [Errno 2] No such a file or dictionary: '~/esp/ESP8266_RTOS_SDK/requirements.txt'.

but it's EXACTLY in my ~/esp/ESP8266_RTOS_SDK.

I guess it's because the python venv,but I can't locate the problem.

Expected Behavior

It will work correctly

Actual Behavior

It shows 'No such a file or dictionary',while it IS here.

Steps to repropduce

Sorry,I don't how to reproduce. I try to install requirements in requirements.txt,and it's happened.

Other items if possible

Olewojt commented 4 months ago

It's because of home symbol used in path assigned to IDF_PATH. When creating environmental variables you should use $HOME which will return absolute path to your home directory e.g /home/user export IDF_PATH='$HOME/esp/ESP8266_RTOS_SDK'

ZephyrKeXiner commented 4 months ago

It really works! thank you very much!