Everyone who references using 'pip' to install packages should ideally update their documentation with a note which informs users that, where a distro is using Externally Managed Packages, they will need to create a Python Virtual Environment or take other appropriate action.Perhaps you could provide feedback to the anonymous source where you found the incomplete tutorial, so they can guide others around the difficulty?
Unfortunately there is a lot of material out there which doesn't and some material probably never will get updated.
Raspberry Pi Foundation material on 'pip' is so outdated that it still refers to Raspbian -
https://projects.raspberrypi.org/en/projects/using-pip-on-raspberry-pi
Statistics: Posted by hippy — Fri Jan 26, 2024 12:16 pm