Get youtube-dlc to work on Ubuntu 22.04

Had a bit of a faff getting youtube-dlc to work on ubuntu. This be the error codes for reference:

# after install with wget
/usr/bin/env: ‘python’: No such file or directory
# this is due to ubuntu running python from "$ python3"
# changing the line first line in "$ /usr/local/bin/youtube-dlc"
# and replacing python with python3 will not work and produces:
/usr/bin/env: ‘python’: No such file or directory
# "$ alias python=python3" will also not work.
# installing with pip gives following error:
zsh: command not found: youtube-dlc
# which is essentially produced as a result of how python
# works, and how documentation for python scripts are rarely
# aimed at non developers and noobs.Code language: PHP (php)

Solution, i.e. how to install/use youtube-dlc under ubuntu/linux

# install from the pip rep:
python3 -m pip install --upgrade youtube-dlc
# run like so:
python3 -m youtube_dlc\?v\=0000000

# optionally create alias:
alias ytd="python3 -m youtube_dlc"
# and run like so:
ytd\?v\=0000000Code language: PHP (php)