I referred to an answer here to install youtube-dl using pip. Although youtube-dl was installed by default in my Ubuntu 20.04, by apt, but it was outdated and showing errors.
Besides, I used pip3 to install it by the command,
pip3 install --upgrade youtube-dl
and also uninstalled the outdated youtube-dl by the apt package manager.
When I use the command pip3 show youtube-dl
, it shows an output as following:
Name: youtube-dl
Version: 2020.6.16.1
Summary: YouTube video downloader
Home-page: https://github.com/ytdl-org/youtube-dl
Author: Ricardo Garcia
Author-email: ytdl@yt-dl.org
License: Unlicense
Location: /home/vivek/.local/lib/python3.8/site-packages
Requires:
Required-by:
I guess now I have to set it as environment variable so I can use it, since I am not able to use any of its commands, for eg.,
youtube-dl --version
gives me an output:
bash: /usr/bin/youtube-dl: No such file or directory
man ln
for how to create a symlink. The shell looks for applications in $PATH; your is not in $PATH, hence the error. DON'T move the folder; that will break things; move it back. – user535733 Jun 25 '20 at 13:48/home/vivek/.local/lib/python3.8/site-packages/youtube-dl --version
You don't need to go to the path. You simply need to be specific about the executable's location. – user535733 Jun 25 '20 at 14:03