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.0k times
7
-
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
17
Install
$ sudo pip install python-vlc
Then you can import the python module
import vlc
Sayali Sonawane
- 11,389
- 4
- 40
- 46
4
I had a same issue. You should try sudo pip install python-vlc
YannSteph
- 10,204
- 3
- 53
- 47
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
- 472
- 3
- 10
0
The answer didn't work for me, using Mu 1.0.2 on a Raspberry Pi, this did however:
sudo pip3 install vlc
fr1550n
- 1,017
- 12
- 21
-
`sudo pip3 install python-vlc` worked for me. Did you mean `python-vlc`? – scenography May 27 '21 at 05:43
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