Linux Device Driver >> eBPF

解決"cannot import name BPF from bcc"問題


參考資訊:
1. issue

問題如下:

Traceback (most recent call last):
  File "/home/steward/main.py", line 2, in <module>
    from bcc import BPF
ImportError: cannot import name 'BPF' from 'bcc' (/usr/local/lib/python3.9/dist-packages/bcc/__init__.py)

解法如下:

$ sudo pip3 uninstall bcc


返回上一頁