【发布时间】:2020-03-19 17:37:35
【问题描述】:
我在 Ubuntu 18.04.4 LTS 上运行 Arduion IDE 1.8.12。
我正在尝试为 ESP32 摄像头模块(标准摄像头模块与 Arduino IDE 上的默认示例)编译示例代码,但出现此错误(我认为这不是 Arduino 问题,而是 Python):
"exec: "python": executable file not found in $PATH
Error compiling for board ESP32 Wrover Module"
与所有 ESP32 相同的消息。
我也做了 sudo apt install python。回复了这个:
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.
当我在终端中输入 Python 时,得到了回复:
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.
感谢您的帮助!
BR, 瓦尔特斯
【问题讨论】:
-
你的意思是使用python 2.7吗?通常建议使用 3.x,因为 2.7 已弃用且不再受支持。
-
您运行的命令是什么? esptool.py?
-
@Rashid'Lee'Ibrahim 安装在 Ubuntu 和其他基于 Debian 的发行版上的 python 版本是 2.7,因此使用 2.7 并不罕见。另外,我已经将python的版本更新到了3.6.9,我也遇到了同样的问题。
标签: python