-
Notifications
You must be signed in to change notification settings - Fork 185
"setup.py" doesn't work properly
Kwang-Hui edited this page Jul 6, 2023
·
2 revisions
setup.py script got failure
user@linux:~/st-device-sdk-c-ref$ python3 setup.py esp32c3
...
sh: 1: python: not found
Usage: python setup.py [BSP_NAME]
--------------------------------------------------
ex) python setup.py esp32c3
ex) python setup.py esp32s2
ex) python setup.py esp32
ex) python setup.py emw3166
ex) python setup.py rtl8720c
ex) python setup.py esp32_v3.3
ex) python setup.py rtl8721c
ex) python setup.py emw3080
ex) python setup.py esp8266
ex) python setup.py rtl8195Internal script is using python instead of python3. So if your build system doesn't have alias for python3 or python3.x as python, You could meet error like below during running setup.py script.
You can try one of below
sudo apt-get install python-is-python3
Assuming your system has /usr/bin/python3.10
sudo vi ~/.bash_aliases
alias python=/usr/bin/python3.10
alias python3=/usr/bin/python3.10
After then apply alisa
source ~/.bash_aliases
Assuming your system has /usr/bin/python3.10
sudo update-alternatives --install /usr/bin/python python /usr/bin/python3.10 20