Page 1 of 1
Ubuntu: exec: "python": executable file not found in $PATH
Posted: Wed Oct 10, 2018 5:03 pm
by jcsbanks
I normally use ESP-IDF on Windows, but also installed ESP-IDF on Ubuntu and was able to compile and flash the board.
Then I installed Arduino from "Ubuntu Software", then used the boards manager with additional boards manager URL and obtained the ESP32 boards.
When compiling an example, I see "exec: "python": executable file not found in $PATH"
I can type python from a terminal and it runs. Adding /usr/bin/python to $PATH in profile.d (similar to adding paths for installing ESP-IDF) makes no difference.
Re: Ubuntu: exec: "python": executable file not found in $PATH
Posted: Wed Oct 10, 2018 8:04 pm
by jcsbanks
Installing from running install.sh from the downloaded tar works for anyone else with the same problem.
Re: Ubuntu: exec: "python": executable file not found in $PATH
Posted: Sat Nov 03, 2018 9:03 pm
by Greenninja4
Hi, I've been having the same issue. What "install.sh" file are you running? And which tar file are you pulling it from?
Re: Ubuntu: exec: "python": executable file not found in $PATH
Posted: Sun Nov 04, 2018 4:05 am
by Greenninja4
I just figured out where the "install.h" file is. For those who come across this in the future:
The "install.h" referenced in this post is from the Arduino IDE folder. If you're on Ubuntu re-download the Arduino IDE from their website (
https://www.arduino.cc/en/Main/Software) and then once you have extracted the folder to where you would like the IDE, run the "install.sh". All this command does is create an application for Ubuntu.
I found out that I was having issues with python not being included in the $PATH when I was using the Arduino IDE from the Ubuntu Software Store.
Re: Ubuntu: exec: "python": executable file not found in $PATH
Posted: Sun Feb 03, 2019 10:27 pm
by joglz8
I am having this same problem. I have tried the remedies above with no luck.
Cannot get away from:
Code: Select all
exec: "python": executable file not found in $PATH
Error compiling for board TTGO LoRa32-OLED V1.
What else could I try?
Thanks.
P.S.: It was the pySerial thing again. Thought that I had installed it on this laptop.
Re: Ubuntu: exec: "python": executable file not found in $PATH
Posted: Tue Mar 19, 2019 9:04 am
by pushpa66
This was the solution for me. You have to install python if have not install it.
sudo apt install python
Re: Ubuntu: exec: "python": executable file not found in $PATH
Posted: Thu May 28, 2020 12:49 pm
by papa.emeritux
Hi all,
I know the post is a bit old, but I just ran into the issue. Since *ubuntu 20.04, you just need to install the package python-is-python3 in order to have the python command to execute python3 by default.
I also had to install python3-serial to have arduino working.
PE.
Re: Ubuntu: exec: "python": executable file not found in $PATH
Posted: Thu May 28, 2020 3:59 pm
by lbernstone
Re: Ubuntu: exec: "python": executable file not found in $PATH
Posted: Thu Aug 27, 2020 12:30 am
by zfields
CONFIRMED: 26 Aug 2020
In order to support the ESP32, you will need to install the following packages:
Code: Select all
sudo apt update && sudo apt upgrade -y \
python-is-python3 \
python3-serial
The Arduino IDE
MUST NOT be installed as a
.deb or
.flatpak. Instead, it must be installed from the
.zip file downloaded from the Arduino downloads page (
https://www.arduino.cc/en/Main/Software).