导入 Python-vlc 时出错

Error when importingPython-vlc

我已经安装了python-vlc

D:\Programing\Python\Python 3.6>python -m pip install python-vlc Requirement already satisfied: python-vlc in d:\programing\python\python 3.6\lib\site-packages\python_vlc-1.1.2-py3.6.egg

当我在空闲状态下导入模块时出现此错误

>>> import vlc
Traceback (most recent call last):
File "<pyshell#1>", line 1, in <module>
  import vlc
File "<frozen importlib._bootstrap>", line 961, in _find_and_load
File "<frozen importlib._bootstrap>", line 950, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 646, in _load_unlocked
File "<frozen importlib._bootstrap>", line 616, in _load_backward_compatible
File "D:\Programing\Python\Python 3.6\lib\site-packages\python_vlc-1.1.2-py3.6.egg\vlc.py", line 181, in <module>
dll, plugin_path  = find_lib()
File "D:\Programing\Python\Python 3.6\lib\site-packages\python_vlc-1.1.2-py3.6.egg\vlc.py", line 156, in find_lib
dll = ctypes.CDLL(libname)
File "D:\Programing\Python\Python 3.6\lib\ctypes\__init__.py", line 344, in __init__
self._handle = _dlopen(self._name, mode)
OSError: [WinError 126] The specified module could not be found

我是 运行 Python 3.6.0 在 windows 10 64x

在CMD中尝试命令"pip install vlc"。如果这不起作用,请尝试 "pip install python-vlc"

如果您有 64 位 python,则需要 64 位 vlc 播放器。如果你有32位python,你需要32位vlc版本。