【问题标题】:idf.py is not working in linux virtual machineidf.py 在 linux 虚拟机中不工作
【发布时间】:2021-10-02 07:53:52
【问题描述】:

我一直在努力学习这个教程https://github.com/espressif/esp-idf/tree/c69f0ec/examples/peripherals/twai/twai_self_test

我使用以下链接设置工作元素https://docs.espressif.com/projects/esp-idf/en/release-v3.3/get-started-cmake/index.html#step-1-set-up-toolchain

但我在编写命令时不断收到此错误消息

命令

idf.py set-target {esp32s2}

错误信息:

WARNING: Support for Python 2 is deprecated and will be removed in future versions.
The following Python requirements are not satisfied:
gdbgui==0.13.2.0
Please follow the instructions found in the "Set up the tools" section of ESP-IDF Getting Started Guide
Diagnostic information:
    IDF_PYTHON_ENV_PATH: (not set)
    Python interpreter used: /usr/bin/python
    Warning: python interpreter not running from IDF_PYTHON_ENV_PATH
    PATH: /home/student/esp/esp-idf/tools:/home/student/esp/esp-idf/tools:/home/student/esp/esp-idf/tools:/home/student/esp/esp-idf/tools:/home/student/esp/esp-idf/tools:/home/student/esp/esp-idf/tools:/home/student/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games

【问题讨论】:

  • 错误信息有什么不清楚的地方?你试过用 Python 3 吗?
  • 我尝试了多种解决方案来修复它,但它不起作用
  • IDF 版本 3.3 不再推荐用于开发,AFAIK。你为什么用这个旧版本?可以换一个新的吗?当前版本 4.3 是基于 python3 构建的,问题应该更少。

标签: python linux python-2.7 terminal


【解决方案1】:

据我所知,python 2 还没有安装“gdbgui”模块。

您可以尝试使用以下命令安装 gdbgui 吗:

python2.7 -m pip install gdbgui==0.13.2.0

再试一次?

【讨论】:

  • 出现以下错误`找不到满足要求的版本 bidict>=0.21.0 (from python-socketio>=1.6.1->Flask-SocketIO=2.9- >gdbgui==0.13.2.0)(来自版本:0.1.5、0.2.1、0.3.0、0.3.1、0.9.0rc0、0.9.0.post1、0.10.0、0.10.0.post1、0.11。 0、0.12.0.post1、0.13.0、0.13.1、0.14.0、0.14.1、0.14.2、0.15.0.dev0、0.15.0.dev1、0.15.0rc1、0.15.0、0.16。 0, 0.17.0, 0.17.1, 0.17.2, 0.17.3, 0.17.4, 0.17.5, 0.18.0, 0.18.1, 0.18.2, 0.18.3, 0.18.4) 未找到匹配分布对于 bidict>=0.21.0 (来自 python-socketio>=1.6.1->Flask-SocketIO=2.9->gdbgui==0.13.2.0)`
  • @AsmaaAlyammahi 我的错,还有另一个问题:我想看看 python2.7 是否可以与这个模块一起工作。似乎并非如此。您正在遵循的教程似乎已过时。我认为你应该使用 python3 而不是 python2.7
猜你喜欢
  • 2012-06-08
  • 2014-07-04
  • 2013-04-10
  • 1970-01-01
  • 2017-07-05
  • 2016-11-07
  • 2018-05-09
相关资源
最近更新 更多