More of a recommendation from Python/upstream Linux, which has been overdue for implementation in Pi OS for some time, as I understand it.
@gadgetoid wrote an quick intro to venvs here, which includes details of how to use them with Thonny:
This article also provides a nice (brief!) intro:
https://www.raspberrypi.com/news/using-python-with-virtual-environments-the-magpi-148/
And Adafruit’s guide is a bit chunkier but contains lots of good info (including how you can set up a Python script as a service so it will run at boot):