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?
Answers:
I had a same issue. You should try sudo pip install python-vlc
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.
Install
$ sudo pip install python-vlc
Then you can import the python module
import vlc
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
Install it using pip
:
pip install python-vlc==3.0.6109
Then import it in your Python file:
import vlc
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?
I had a same issue. You should try sudo pip install python-vlc
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.
Install
$ sudo pip install python-vlc
Then you can import the python module
import vlc
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
Install it using pip
:
pip install python-vlc==3.0.6109
Then import it in your Python file:
import vlc