If you're on any mainstream distro, your repositories most likely already have yt_dlp ready to be downloaded without having to use pip or compiling from source. Downloading it from the repo usually breaks the functionality of it if you downloaded it using pip or from source.
When you initiate a system update, it will update ytdlp from your repo's and thus break it again.
>>13565 's suggestion should fix it regardless of where you got the download from, so it's best to run that after an update.