尝试运行示例时出现以下错误hello_world.py
。
Traceback (most recent call last):
File "/usr/share/bcc/examples/hello_world.py", line 9, in <module>
from bcc import BPF
ImportError: cannot import name BPF
我从源代码(链接)安装了密件抄送。我还安装了两个 python bcc 绑定包,python-bcc
但python3-bcc
没有运气。
我正在运行 Ubuntu 18.04和内核版本4.15.0-117-generic。
我在这里想念什么?