Import Vlc module in python

Question:

I am trying to create a media player using vlc and python but it throws an Error which is No module named vlc. how to fix this?

Asked By: Rajesh Rajendran

||

Answers:

I had a same issue. You should try sudo pip install python-vlc

Answered By: SivamNatesan

There is also python-vlc

https://pypi.python.org/pypi/python-vlc/1.1.2

Download the .tar.gz file into your project and unzip it. Once unzipped, run:

python setup.py install

This will install the python-vlc module for you and then try importing it in your python script.

P.S Make sure you are inside the unzipped folder and you can see the setup.py file.

Answered By: Saravana Kumar

Install

$ sudo pip install python-vlc

Then you can import the python module

import vlc
Answered By: Sayali Sonawane

I had same (windows, Jupyter, Python 3). Think downloading the .exe file was the thing that fixed it

https://get.videolan.org/vlc/3.0.11/win64/vlc-3.0.11-win64.exe

Answered By: Thomas

Install it using pip:

pip install python-vlc==3.0.6109

Then import it in your Python file:

import vlc
Answered By: R S
Categories: questions Tags: ,
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.