[CentOS] youtube-dl No module named 'pkg_resources'

Akemi Yagi amyagi at gmail.com
Wed May 8 21:10:05 UTC 2019


On Tue, May 7, 2019 at 7:55 PM Michael Hennebry
<hennebry at web.cs.ndsu.nodak.edu> wrote:
>
> youtube-dl doesn't work for me after a recent update.
> I do not use it often, so do not know whether the update matters.
> It gives the error message:
> Traceback (most recent call last):
>    File "/usr/bin/youtube-dl", line 6, in <module>
>      from pkg_resources import load_entry_point
> ModuleNotFoundError: No module named 'pkg_resources'
>
> I've tried reinstalling python-setuptools,
> installing python34-setuptools and reinstalling youtube-dl .
>
> I'm aware there is a bugzilla on it.
> That and stackoverflow are where I got the ideas above.
>
> How do I make youtube-dl work on Centos 7?

If you are using the EPEL one, you can resolve it by installing:

(1) python36-setuptools from epel
and
(2) youtube-dl from epel-testing

Akemi


More information about the CentOS mailing list