To run pip install yt-dlp the way the project recommends, use python3 -m pip install -U "yt-dlp[default]", which installs the downloader and its default optional dependencies. A plain install is only the first step: for YouTube you also need ffmpeg and a JavaScript runtime, and most errors come from one of those being missing or from pip installing into a different Python than the one you run.
The install command
The yt-dlp wiki gives this as the standard pip install:
python3 -m pip install -U "yt-dlp[default]"
The wiki notes that on some systems you should use py or python in place of python3. On Windows, the launcher form is usually the safest:
py -m pip install -U "yt-dlp[default]"
The quotes matter in some shells. The square brackets in yt-dlp[default] are special characters in shells such as zsh, so quoting stops the shell from treating them as a pattern. The -U flag upgrades the package if an older copy is already installed. The pip user guide describes python -m pip as running pip with the interpreter you named, so the package lands in the same Python you will later use to run it.
The shortest form, pip install yt-dlp, is the one PyPI shows, and it works. The difference is the default extra. The wiki also documents an install without any optional dependencies, which you would only choose on purpose:
python3 -m pip install --no-deps -U yt-dlp
Check that it worked
After the install finishes, ask the program for its version:
yt-dlp --version
Example output (the number changes with each release):
2026.10.26
As of November 2026, PyPI lists 2026.10.26 as the latest release. yt-dlp uses date-based version numbers, so a version string that looks old, such as one from the previous year, is a strong hint that you should upgrade.
Python version requirement
The README and the PyPI page both say yt-dlp supports Python 3.11 or newer on CPython and PyPy, and that other versions "may or may not work correctly". Check your interpreter before anything else if the install behaves strangely:
python3 --version
If that prints something older than 3.11, install a newer Python and run pip through it, for example py -3.12 -m pip install -U "yt-dlp[default]" on Windows if you have 3.12 installed.
What pip does not install
Two things sit outside the pip package, and both explain a lot of "it installed but does not work" reports.
- ffmpeg and ffprobe. The README says they are strongly recommended and are needed for merging separate video and audio streams and for post-processing. It also warns that you need the ffmpeg binary, not the Python package called ffmpeg. Running
pip install ffmpegwill not help. Install the real program from your operating system's package manager or from the ffmpeg project, and make sureffmpegandffproberun from a terminal. - A JavaScript runtime for YouTube. The README says
yt-dlp-ejsis required for full YouTube support, and that a JavaScript runtime is needed to run it. Thedefaultextra from the install command above brings inyt-dlp-ejs, which is the main reason to prefer it over a bare install.
Set up the JavaScript runtime
The yt-dlp wiki says yt-dlp needs to solve JavaScript challenges presented by YouTube. It lists these runtimes and minimum versions as of November 2026:
| Runtime | Minimum version | Notes |
|---|---|---|
| Deno | 2.3.0 | Recommended, enabled by default |
| Node | 22.0.0 | Enable with --js-runtimes node |
| QuickJS / QuickJS-NG | QuickJS 2023-12-9; all QuickJS-NG versions | Enable with --js-runtimes quickjs |
| Bun | 1.2.11 | Deprecated support |
With Deno installed you need no flag. For the others, the executable must be on your PATH, or you can give its location after the runtime name:
--js-runtimes node
--js-runtimes "deno:/path/to/deno"
The wiki suggests putting the option in your yt-dlp configuration file so you do not type it every time. If a YouTube download fails with a message about missing JavaScript support or challenges, check that one of these runtimes is installed, new enough, and reachable from the terminal where you run yt-dlp.
Fix: yt-dlp is not recognized or command not found
Example output on Windows:
'yt-dlp' is not recognized as an internal or external command,
operable program or batch file.
Example output on Linux or macOS:
bash: yt-dlp: command not found
pip installed the package, but the folder that holds the yt-dlp launcher is not on your PATH, or you installed into a different Python than the one whose scripts folder you have on the path. Work through these in order:
- Re-run the install with the interpreter you intend to use:
python3 -m pip install -U "yt-dlp[default]", orpy -m pip ...on Windows. - Run
python3 -m pip show yt-dlpto confirm the package is installed in that interpreter and see where it lives. - If you installed inside a virtual environment, activate it first. The launcher only exists inside that environment.
- Open a new terminal window. A
PATHchange made by an installer is not visible to terminals that were already open.
If none of that helps, the wiki lists standalone binaries as another install route. That avoids the pip and PATH questions entirely, though it is a different install with its own update method.
Fix: externally-managed-environment
On recent Debian, Ubuntu and Homebrew Python installs, pip may refuse with error: externally-managed-environment. This is a protection against changing the system Python, not a yt-dlp problem. The fix is a virtual environment, covered in Fix pip "error: externally-managed-environment". Create one, activate it, and run the same install command inside it.
Fix: ffmpeg not found when merging or converting
If a download works but merging, audio extraction or format conversion fails, ffmpeg or ffprobe is usually missing from your PATH. Test both in the same terminal:
ffmpeg -version
ffprobe -version
If either command is not found, install ffmpeg as a program and reopen the terminal. Remember the README warning: the Python package named ffmpeg is not the ffmpeg binary that yt-dlp uses.
Updating yt-dlp
Sites change often, and a downloader that worked last month can stop working. The README says that if you installed with pip you should re-run the same command you used to install it:
python3 -m pip install -U "yt-dlp[default]"
The yt-dlp -U self-update is documented for binary installs, not for pip. The README also recommends the nightly build for regular users and asks that you update to nightly before reporting a problem with the stable release. The wiki's nightly command adds --pre:
python3 -m pip install -U --pre "yt-dlp[default]"
Pinning the version in a project
If you call yt-dlp from your own project, record it in requirements.txt as you would any dependency, for example yt-dlp[default]. Because the site-facing code changes quickly, many projects leave it unpinned or update it often. The file format and its own errors are explained in pip install requirements.txt: How It Works and How to Fix Errors.
Optional: browser impersonation
The README documents an optional extra, curl-cffi, which adds browser impersonation support. Install it alongside the default extra:
python3 -m pip install "yt-dlp[default,curl-cffi]"
Per the PyPI page, this extra is not included in the Unix zipimport binary or the 32-bit Windows build. Skip it unless a specific site requires it.
If it still fails
Read the last line of the error. A "not found" message about the program is about PATH and which Python you installed into. A message about ffmpeg is about the separate ffmpeg program. A YouTube error about challenges is about the JavaScript runtime. And any failure that appears after a site change is most often cured by upgrading with the install command above. Use yt-dlp only for content you have the right to download.
Frequently asked questions
- What is the right pip install yt-dlp command?
- The yt-dlp wiki gives python3 -m pip install -U "yt-dlp[default]". The plain pip install yt-dlp works too, but the default extra pulls in the optional dependencies, including the yt-dlp-ejs package that YouTube support needs.
- Which Python version does yt-dlp need?
- As of November 2026, the README and PyPI say Python 3.11 or newer, on CPython or PyPy. Other versions may or may not work correctly.
- Do I need ffmpeg if I install with pip?
- pip does not install it. The README says ffmpeg and ffprobe are strongly recommended for merging separate video and audio files and for post-processing, and that you need the ffmpeg binary, not the Python package of the same name.
- How do I update yt-dlp after a pip install?
- Re-run the command you used to install it. The README says pip users should repeat their install command, while the yt-dlp -U self-update is for the standalone binaries.
- Why does YouTube fail even though yt-dlp installed fine?
- YouTube support needs the yt-dlp-ejs package and a JavaScript runtime. The yt-dlp wiki lists Deno 2.3.0 or newer as the default runtime, with Node 22.0.0 or newer and QuickJS as alternatives you enable with --js-runtimes.