python 2.7 vs python 3

gpalmia
Posts: 5
Joined: Tue Jul 23, 2019 10:16 am

python 2.7 vs python 3

Postby gpalmia » Mon Oct 12, 2020 2:39 pm

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?

User avatar
ESP_Roland
Posts: 265
Joined: Tue Oct 09, 2018 10:28 am

Re: python 2.7 vs python 3

Postby ESP_Roland » Mon Oct 12, 2020 3:12 pm

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.

gpalmia
Posts: 5
Joined: Tue Jul 23, 2019 10:16 am

Re: python 2.7 vs python 3

Postby gpalmia » Mon Oct 12, 2020 4:23 pm

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

gpalmia
Posts: 5
Joined: Tue Jul 23, 2019 10:16 am

Re: python 2.7 vs python 3

Postby gpalmia » Mon Oct 12, 2020 5:52 pm

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...

Who is online

Users browsing this forum: No registered users and 78 guests