Page 1 of 1

python 2.7 vs python 3

Posted: Mon Oct 12, 2020 2:39 pm
by gpalmia
I followed the instructions on the web page https://docs.espressif.com/projects/esp ... index.html for the installation of ESP-IDF
I use raspberryPi with raspbian (python 3 is pre-installed) but it seems that esp-idf can't see Python 3 ... It sees Python 2.7 and informs that some features are disabled.
I cannot compile or load programs on ESP 32.
How can I solve?

Re: python 2.7 vs python 3

Posted: Mon Oct 12, 2020 3:12 pm
by ESP_Roland
Hi gpalmia,

Does this mean that "python --version" shows Python 3? If not then "update-alternatives" should work on RPI as well for changing the default Python interpreter.

Re: python 2.7 vs python 3

Posted: Mon Oct 12, 2020 4:23 pm
by gpalmia
Thank you ESP_Roland
The python version returned to the command 'python --version' is 2.7.16 while if I execute 'python3 --version' the command returns 3.7.3.
Which argument should I use for the command you suggest (update-alternative <argument>)?
Thank you very much for the answer

Re: python 2.7 vs python 3

Posted: Mon Oct 12, 2020 5:52 pm
by gpalmia
It work!
Thanks you ESP_Roland!
I folowed suggestions of this page (https://linuxconfig.org/how-to-change-f ... bian-linux) and now all work fine...