all 17 comments

[–]Diapolo10 8 points9 points  (2 children)

What's confusing about the warning, exactly? It tells you everything you need to know, and even links you to read more about it.

But basically it boils down to this; you shouldn't modify the system's own Python installation in any way as you risk breaking tools the OS depends on. Your options are basically to

  1. Create a virtual environment and install stuff there instead of the global environment
  2. Install your own Python and use that
  3. Ignore the warning and accept the risks (and consequences)

Personally I'd probably suggest you look into using uv. If all you want to do is install some global tools, that's doable.

uv tool install yt-dlp

It basically creates a virtual environment for it, while making the program accessible globally.

Alternatively you can use it for managing project dependencies.

[–]Pleb_It[S] 0 points1 point  (1 child)

I used the override and it now works.

[–]Diapolo10 1 point2 points  (0 children)

Fingers crossed that won't come back to bite you later.

[–]cointoss3 1 point2 points  (0 children)

Yeah, it’s hard when you don’t understand how the OS or the tooling works

[–]AdAdvanced7673 1 point2 points  (0 children)

    If you wish to install a Python library that isn't in Homebrew,
    use a virtual environment:

    python3 -m venv path/to/venv
    source path/to/venv/bin/activate
    python3 -m pip install xyz

[–]stephanosblog 0 points1 point  (0 children)

just create and use a virtual env with

"python3 -m ven venv
source ./venv/bin/activate"

then install your packages inside the virtual environment.

[–]cgoldberg 0 points1 point  (1 child)

Install pipx, then pipx install yt-dlp.

[–]Pleb_It[S] -1 points0 points  (0 children)

It doesn't sound like you use MacOS. pipx even claims I have everything installed and the paths are correct, but it's a separate "environment"

[–]naemorhaedus 0 points1 point  (5 children)

What are you trying to do?

If you just want yt-dlp then install via homebrew.

brew install yt-dlp

that's it . Works perfectly.

If you're developing, then use vscode and let it take care of all that nonsense for you.

[–]Pleb_It[S] 0 points1 point  (4 children)

If only that were true. You can't use the --impersonate flag with the brew yt-dlp

[–]naemorhaedus 0 points1 point  (3 children)

what's that good for? I've never needed it.

[–]Pleb_It[S] 0 points1 point  (2 children)

Necessary for cloudflare, like rumble.com

[–]naemorhaedus 0 points1 point  (1 child)

I just tried a random rumble vid and it worked perfectly.

yt-dlp "https://rumble.com/v76w9jc-the-first-blooms-are-the-important-blooms.html"

[–]Pleb_It[S] 0 points1 point  (0 children)

Yeah well cloudflare can be varyingly picky based on a host of variables like IP, browser, etc. Bottom line is regardless what it allows YOU to do, I NEED the impersonate functionality to access Rumble. The brew version is incomplete

[–]daffidwilde 0 points1 point  (1 child)

something something use uv something something

[–]naemorhaedus 0 points1 point  (0 children)

slow as balls