Hello Gerry,
What role does the Automic agent play in your question? To me this sounds like a general question about using Python/Pip.
If the developer provides a script for the agent that requires some python packages to be available, it is certainly the best idea to use virtual environments. There are also other solutions besides venv like poetry that are a bit more modern / stable and have more features.
Nevertheless, you need a plan on how to deploy the whole thing - put the script on the server, create a virtual environment, install dependencies etc.. This cannot be answered in general and depends on your company standards.
Regards
Joel