如何在 Python 中安装 VLC 模块

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/34348607/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-19 14:51:43  来源:igfitidea点击:

How to install the VLC module in Python

pythonpipvlc

提问by Rakesh Bhagam

I was trying to install VLC using PIP, but get the following error:

我试图使用 PIP 安装 VLC,但出现以下错误:

pip install VLC

Downloading/unpacking vlc
Cannot fetch index base URL https://pypi.python.org/simple/
Could not find any downloads that satisfy the requirement vlc
Cleaning up...
No distributions at all found for vlc
Storing complete log in C:\Users\rakeshb4\pip\pip.log

采纳答案by frlan

The packages vlcseems to have currently issues on pypi. However, you are on Windows and this package appears to be for MacOS only (based on description).

这些软件包vlc目前似乎在 pypi 上存在问题。但是,您使用的是 Windows,并且此软件包似乎仅适用于 MacOS(根据描述)。

Try python-vlcinstead.

试试吧python-vlc

回答by Georges Hart

I could solve the problem with : pip install python-vlc

我可以解决这个问题:pip install python-vlc