Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 2490

Raspberry Pi OS • Re: Trouble installing yt-dlp on RPi5 with Pi-OS 64 bit

$
0
0
That's the incorrect way of doing it starting with Bookworm and going forward. It was already the wrong way of doing it before bookwomr, but doing it another way was not enforced.

The error message gives you instructions on how to proceed. Did you read it? Did you follow the instructions?


Short versiion:

Install it in a python venv:

create a directory for your code to exist in

Code:

pi@bookworm01:~ $ cd ~pi@bookworm01:~ $ mkdir testprojectpi@bookworm01:~ $ cd testproject
create the python venv

Code:

pi@bookworm01:~ $ python3 -m venv venv
activate the venv (you need to do this everytime you use your project's code from a new terminal window)

Code:

pi@bookworm01:~ $ source venv/bin/activate
install your python packages in the venv, in you case it is yt-dlp

Code:

pi@bookworm01:~ $ pip install yt-dlp
You should read more about what a python virtual env is and what it does, here's a good place to start: https://realpython.com/python-virtual-e ... -a-primer/

Statistics: Posted by memjr — Tue Dec 19, 2023 1:55 am



Viewing all articles
Browse latest Browse all 2490

Trending Articles