pafy Runtime warning "youtube-dl not found "

Anil_M picture Anil_M · Jan 11, 2017 · Viewed 10.5k times · Source

I recently installed pafy for windows and getting following message during runtime.

Python 2.7.9 (default, Dec 10 2014, 12:24:55) [MSC v.1500 32 bit (Intel)] on win32 Type "copyright", "credits" or "license()" for more information.

================================ RESTART ================================

WARNING:root:pafy: youtube-dl not found; falling back to internal backend. This is not as well maintained as the youtube-dl backend. To hide this message, set the environmental variable PAFY_BACKEND to "internal".

How do I setup environmental variable for PAFY_BACKEND and get rid of Warning?

Answer

Pozeidon picture Pozeidon · Mar 31, 2017

If you are using windows type this command in your command line: `pip install --upgrade youtube-dl .

Else if you are using Mac or unix, follow the this link `youtube-dl installation on unix and Mac OS x

This is to install youtube-dl on your machine after which the warning will no longer appear.