我在跑步Arduino 集成开发环境 1.8.12 on Ubuntu 18.04.4 LTS.
我正在尝试编译 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 与 python3 链接起来,它适用于我的 ubuntu 18.04 机器
sudo ln -s /usr/bin/python3 /usr/bin/python
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)