How to install firebase_admin library and have it act as global libraries

I have 1 problem. I am using FIREBASE to send notifications from SERVER to mobile devices. However, to do this I need to install the

“firebase_admin”

library on the SERVER. Currently I use GCP to deploy Frappe and Erpnext. The problem is that I cannot directly run the command

“sudo pip install firebase-admin”

because this is not allowed. One recommendation is that I use a virtual environment for installation. But the virtual environment as far as I know, when I close SHH, the virtual environment also closes. Another way I also found is to run the command

“sudo pip install firebase-admin --break-system-packages”.

However this is not safe. So what is the solution so that I can install the “Firebase-admin” library. It’s best globally.