【发布时间】:2016-05-30 23:23:27
【问题描述】:
我在 Windows 上,我希望将 Python 绑定用于 VLC。我已经从 https://github.com/geoffsalmon/vlc-python 下载了模块,并按照阅读我的说明做了。但是,我仍然坚持导入模块。错误如下所示:
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 音频文件,这将是其他活动的一部分。
【问题讨论】:
-
来自自述文件:
On win32, the simplest way is to put the vlc.py file in the same directory as the libvlc.dll file (standard location: c:\Program Files\VideoLAN\VLC ).你这样做了吗? -
是的,我这样做了,也复制了编译后的版本。 @威尔伯