0

I am trying to import the vlc module in to python directory in raspberry pi, but error comes which says No module named VLC. can anyone tell me the way to import vlc module in python.

Thanks in advance :)

7
  • Did you install python-vlc? Commented Apr 28, 2016 at 4:37
  • No i didn't install python-vlc. can you tell me the steps to install it? am new to both python and raspberry pi. Commented Apr 28, 2016 at 4:46
  • Install from the linked page pypi.python.org/pypi/python-vlc. You can use pip or download and install manually. Commented Apr 28, 2016 at 4:51
  • Thanks for your help. i'll do it and let you know the results :) Commented Apr 28, 2016 at 5:01
  • I have downloaded the python-vlc tar file and extract it. i don't know how to install and import it in to python? Commented Apr 28, 2016 at 5:23

1 Answer 1

1

You first have to install python-vlc on the raspberry (as mentioned in the comments) with pip

sudo pip install python-vlc

Then you can import the python module

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

3 Comments

@SivamNatesan Good to hear. If you think the answer was usefull, an upvote/accept would be nice
Finally, I managed to import vlc module. Thanks for that. But now i got struck with some other error which is (No module named Pathlib). I am using python 2.7. Any suggestions? @salomonderossi
@SivamNatesan sudo pip install pathlib?

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.