Python 如何解决这个问题?pytube.exceptions.RegexMatchError:get\u ytplayer\u config:找不到配置模式的匹配项

Python 如何解决这个问题?pytube.exceptions.RegexMatchError:get\u ytplayer\u config:找不到配置模式的匹配项,python,youtube,pytube,Python,Youtube,Pytube,当我尝试使用pytube下载视频时,我遇到了这个错误。我正在使用最新版本的pytube raise RegexMatchError(caller="get_ytplayer_config", pattern="config_patterns") pytube.exceptions.RegexMatchError: get_ytplayer_config: could not find match for config_patterns 您可能正在运行py

当我尝试使用pytube下载视频时,我遇到了这个错误。我正在使用最新版本的pytube

raise RegexMatchError(caller="get_ytplayer_config",
pattern="config_patterns")
pytube.exceptions.RegexMatchError:
get_ytplayer_config: could not find match for config_patterns

您可能正在运行pytube的旧版本。 运行这些命令,它们可能会解决您的问题:

python -m pip uninstall pytube pytube3 pytubex
python -m pip install git+https://github.com/nficano/pytube