Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python cannot import BCC #5221

Open
tzpranto opened this issue Feb 28, 2025 · 0 comments
Open

Python cannot import BCC #5221

tzpranto opened this issue Feb 28, 2025 · 0 comments

Comments

@tzpranto
Copy link

I am using Ubuntu 24.04.1 and I have installed the bcc library using the following command as mentioned in the documentation.

  • sudo apt-get install bpfcc-tools linux-headers-$(uname -r)

But when I try to import the BCC library from python, I get module not found error. I am using a virtual environment created by anaconda. Do I need to install additional libraries for python binding?

Traceback (most recent call last):
File "bpf_ts_1.py", line 9, in
from bcc import BPF
ModuleNotFoundError: No module named 'bcc'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant