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 increate the python venvactivate the venv (you need to do this everytime you use your project's code from a new terminal window)install your python packages in the venv, in you case it is yt-dlpYou 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/
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
Code:
pi@bookworm01:~ $ python3 -m venv venv
Code:
pi@bookworm01:~ $ source venv/bin/activate
Code:
pi@bookworm01:~ $ pip install yt-dlp
Statistics: Posted by memjr — Tue Dec 19, 2023 1:55 am