Import Vlc module in python

孤人 提交于 2019-11-28 11:52:14

问题


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?


回答1:


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




回答2:


Install

$ sudo pip install python-vlc

Then you can import the python module

import vlc



回答3:


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.



来源:https://stackoverflow.com/questions/38265773/import-vlc-module-in-python

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!