VLC 的 Python 绑定 [英] Python bindings for VLC

查看:21
本文介绍了VLC 的 Python 绑定的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 Windows 上,我希望对 VLC 使用 Python 绑定.我已经从 https://github.com/geoffsalmon/vlc-python 下载了模块,并按照阅读我的要求做.但是,我仍然坚持导入模块.错误如下:

I am on Windows, and I wish to use Python Bindings for VLC. I've already downloaded the module from https://github.com/geoffsalmon/vlc-python , and did as per the read me. But, still I'm stuck at importing the module. The error looks like this :

Traceback (most recent call last):
File "<pyshell#5>", line 1, in <module>
  import vlc
  File "c:\python27\python-vlc-1.1.2\vlc.py", line 173, in <module>
  dll, plugin_path  = find_lib()
  File "c:\python27\python-vlc-1.1.2\vlc.py", line 150, in find_lib
  dll = ctypes.CDLL('libvlc.dll')
  File "C:\Python27\lib\ctypes\__init__.py", line 353, in __init__
  self._handle = _dlopen(self._name, mode)
  WindowsError: [Error 126] The specified module could not be found

关于放置模块的任何解决方案?我的主要目标是通过 vlc 播放 MP3 音频文件,这将是其他活动的一部分.

Any Solution on where to place the module ? My main aim is to play MP3 audio files through vlc, which would be part of some other activity.

推荐答案

我遇到了同样的问题.对我来说,如果你有 64 位 python,你需要 64 位 vlc 播放器.如果你有32位python,你需要32位vlc播放器.

I had same problem. It turns out for me if you have 64bit python, you need 64bit vlc player. If you have 32bit python, you need 32bit vlc player.

希望对你也有用.

这篇关于VLC 的 Python 绑定的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆