Reputation: 9803
from libsvm import svmutil
ImportError: No module named libsvm
I have the module libsvm
installed. Because when I run pip3 install libsvm
, I see this:
Requirement already satisfied: libsvm in /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (3.23.0.4)
So what's causing the error?
Upvotes: 0
Views: 690
Reputation: 510
Upvotes: 0
Reputation: 709
Try the followings, it may solve the problem:
0- Run your code with Python version 3 and above. (python3 yourFile.py
in the terminal)
1- pip3 install libsvm
2- pip install -U libsvm-official
Upvotes: 0