【发布时间】:2021-05-21 03:34:45
【问题描述】:
说明
python tty 模块时出错。
如何在 yocto build 中启用这个模块?
环境
root@raspberrypi3-64:~# uname -a
Linux raspberrypi3-64 5.4.83-v8 #1 SMP PREEMPT Wed Jan 20 09:59:41 UTC 2021 aarch64 GNU/Linux
日志
root@raspberrypi3-64:~# python3
Python 3.9.1 (default, Dec 7 2020, 22:33:43)
[GCC 10.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import tty
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'tty'
>>>
root@raspberrypi3-64:~#
预期输出
应该从ubuntu 18.04主机导入tty模块,类似如下Log
~$ python3
Python 3.6.9 (default, Oct 8 2020, 12:12:24)
[GCC 8.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import tty
>>>
~$
【问题讨论】:
标签: python linux yocto tty meta-raspberrypi