If you have such restrictions, would it be possible to isolate your code in a docker container and install all libs there?
This wouldn’t touch the bare metal, so that you won’t mess up the server install.