/home/nvidia/cotton_ws/src/wirecontrol/scripts/wired_control.py: line 3: import: command not found
时间: 2023-08-06 13:02:08 浏览: 184
引用\[1\]:报错(1):/bin/sh: 1: flex: not found。解决方案(1):使用命令sudo apt-get install flex来安装flex。引用\[2\]:报错:/bin/sh: 1: flex: not found。原因:缺少库。解决:使用命令sudo apt-get install flex来安装flex。引用\[3\]:报错:/bin/sh: 1: flex: not found。解决方案:使用命令sudo apt-get install flex来安装flex。问题:/home/nvidia/cotton_ws/src/wirecontrol/scripts/wired_control.py: line 3: import: command not found。
回答: 这些报错信息表明在配置内核菜单或运行脚本时缺少了flex库。为了解决这个问题,你可以使用命令sudo apt-get install flex来安装flex库。这个命令会自动下载并安装所需的库文件。安装完成后,你应该能够成功运行配置菜单或脚本。
#### 引用[.reference_title]
- *1* [make menuconfig错误: /bin/sh: 1: flex: not found 和 /bin/sh: 1: bison: not found](https://blog.csdn.net/qq_36393978/article/details/118225531)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* [linux报错:/bin/sh: 1: flex: not found scripts/Makefile.host:9: recipe for target ‘scripts/kconfig/...](https://blog.csdn.net/u010835747/article/details/118282135)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
- *3* [【错误记录】编译 Linux 内核报错 ( /bin/sh: 1: flex: not found )](https://blog.csdn.net/han1202012/article/details/123656271)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文