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
Active
Viewed 3.7k times
8
-
2download [vlc.py](http://git.videolan.org/?p=vlc/bindings/python.git;a=tree;f=generated;b=HEAD) and put it in the same folder than your project. – Jul 08 '16 at 11:44
-
@rsm - or into the `site-packages` for making it available for every python project. – linusg Jul 08 '16 at 11:45
5 Answers
20
Install
$ sudo pip install python-vlc
Then you can import the python module
import vlc

Sayali Sonawane
- 12,289
- 5
- 46
- 47
4
I had a same issue. You should try sudo pip install python-vlc

YanSte
- 10,661
- 3
- 57
- 53

SivamNatesan
- 334
- 3
- 20
0
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.

Saravana Kumar
- 482
- 3
- 10
0
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

Thomas
- 1
- 1
-
Your answer could be improved with additional supporting information. Please [edit] to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers [in the help center](/help/how-to-answer). – Community Dec 06 '21 at 16:45
-
While this link may answer the question, it is better to include the essential parts of the answer here and provide the link for reference. Link-only answers can become invalid if the linked page changes. - [From Review](/review/late-answers/30519331) – deponovo Dec 06 '21 at 16:47