0

I have installed libsvm-3.12 and placed into:

  • /home/ubuntu/libsvm-3.12

In my pythonpath I have the following:

echo $PYTHONPATH
/home/ubuntu/libsvm-3.12/python:/home/ubuntu/libsvm-3.12:$PYTHONPATH

This is in both .bashrc in home and in /etc/enviroments

I rebooted the machine.

From python I get:

>>> import svmulti
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named svmulti

How do I let python know where the lib is?

1 Answer 1

1

Given installation via make in .../libsvm-3.12/python,I think you also want:

>>> import svmutil

not:

>>> import svmulti
Sign up to request clarification or add additional context in comments.

2 Comments

One of my more dumb moments:)
I'm usually lucky to spell 'import' correctly - thanks for upvote - woulda just made it a comment but it seemed a bit clearer to clarify the typo on multiple lines.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.