update youtube-dl with pip


update youtube-dl with pip

First, uninstall the apt version.

sudo apt-get remove youtube-dl
Then, install youtube-dl with pip.

sudo apt-get install python3-pip
pip3 install --user youtube-dl
To update it afterwards, for Ubuntu 20.04+ (Python 3 being the default Python) try:

pip3 install --upgrade youtube-dl
If you are using an older version of Ubuntu, or specifically want to use Python2, try:

pip install --upgrade youtube-dl
Note: this assumes you have pip or pip3 installed. Avoid using sudo pip3 (use virtualenv instead).

Using pip is a way to install youtube-dl, as reported on the official youtube-dl website, and the --upgrade option makes sure you end up with the latest available version installed.

To find out where youtube-dl has been installed, you can use the pip3 show youtube-dl

Author: Sebastian Emilio Narvaez

Created: 2023-06-18 Sun 02:19