Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"exec: "python": executable file not found in $PATH

Tags:

python

I am running Arduion IDE 1.8.12 on Ubuntu 18.04.4 LTS.

I am trying to compile Example code for ESP32 Camera module (standard camera module with default example on Arduino IDE) and I got this error (which I think is not Arduino issue, but Python):

"exec: "python": executable file not found in $PATH
Error compiling for board ESP32 Wrover Module" 

Same message with all ESP32.

I also did sudo apt install python. Got back this:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
python is already the newest version (2.7.15~rc1-1).
0 modernizētas, 0 instalētas no jauna, 0 tiks noņemtas un 6 netiks modernizētas.

When I type Python in Terminal, got this back:

Python 2.7.17 (default, Nov  7 2019, 10:07:09)
[GCC 7.4.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.

Thank you for help!

BR, Valters

like image 952
wotesi Avatar asked Mar 19 '20 17:03

wotesi


3 Answers

I created a symbolic link as such, linking python with python3, it worked for my ubuntu 18.04 machine

sudo ln -s /usr/bin/python3 /usr/bin/python
like image 120
Orgosoft Avatar answered Sep 17 '22 12:09

Orgosoft


I did this for Ubuntu 20.04 LTS:

apt install python-is-python3
like image 27
duedl0r Avatar answered Sep 17 '22 12:09

duedl0r


To solve & Fixed the following upload error from Arduino To ESP32-CAM (And for ESP32 too): environment: ubuntu 20.04 64bit, Arduino 1.8.13 ESP32-CAM And yp-05 (for ESP's serial connection)

  • exec: "python": executable file not found in $PATH
  • Error compiling for board AI Thinker ESP32-CAM.

The solution is:

  1. Installing the package (for example python-is-python3_3.8.2-4_all):

sudo dpkg -i python-is-python3_3.8.2-4_all.deb
2) Wiring

WIRES colors: | black | NO | WHITE | GRAY | BROWN | EMPTY
yp-05 legs ordere: | GRD | EMPTY | VCC | TX | RX | DIR esp32s CAM: | GRD | EMPTY | 3.3V | GPIO 3 UOR | GPIO 1 UOT | EMPTY

*** just For Upload: SHORT ESP32-CAM 100 & GRD

I hope it will save time to start using ESP32-CAM (And ESP32 too).

That's it - Solved & Run!

like image 36
eyal_r Avatar answered Sep 20 '22 12:09

eyal_r