this post was submitted on 01 Sep 2024
230 points (97.9% liked)
Asklemmy
43760 readers
1090 users here now
A loosely moderated place to ask open-ended questions
Search asklemmy ๐
If your post meets the following criteria, it's welcome here!
- Open-ended question
- Not offensive: at this point, we do not have the bandwidth to moderate overtly political discussions. Assume best intent and be excellent to each other.
- Not regarding using or support for Lemmy: context, see the list of support communities and tools for finding communities below
- Not ad nauseam inducing: please make sure it is a question that would be new to most members
- An actual topic of discussion
Looking for support?
Looking for a community?
- Lemmyverse: community search
- sub.rehab: maps old subreddits to fediverse options, marks official as such
- !lemmy411@lemmy.ca: a community for finding communities
~Icon~ ~by~ ~@Double_A@discuss.tchncs.de~
founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
I just updated to the newest Ubuntu LTS, which puts pip into system managed mode so you can't easily install packages outside of a virtual environment anymore.
If you (or anyone who stumbles upon this comment in the future) run into this problem, the new recommended way to install yt-dlp through pip and keep it in your path and up to date is via pipx (
sudo apt install pipx
). The syntax is a bit gnarly for pre-releases, so I figured I'd post an update:To install the nightly:
pipx install --pip-args '\--pre' "yt-dlp[default,curl-cffi]"
To update the nightly:
pipx upgrade --pip-args '\--pre' yt-dlp
I alias the update command and run it before every download session.
(You may need to delete your old yt-dlp binaries before it'll let you install the new one - use
type -a yt-dlp
to find them.)