I faced the same issue, here is how I quickly fixed it, assuming you have a linux server of the same OS and architecture.
Install the software on the system you control
Find the executable example which python
and copy it to ~/
Copy the libraries with:
ldd "$(which python)" | grep "=> /" | awk '{print $3}' | xargs -I '{}' cp -v '{}' ~/
Transfer the executable and the libraries to the other system where you only have local privileges, then run the following:
mkdir ~/lib
export PATH="$PATH:~/lib"
export LD_LIBRARY_PATH=~/lib:/lib:/usr/lib
This will create a folder ~/lib
to store the libraries, add it to your path, and tell LD to look at the libraries there, so just add your executables and the libraries there, now you can run it as you'd elsewhere
This may be very hacky, but it's very portable, quick, and I haven't yet found something I can't run that way, of course, the software cannot try to do things that need root access, like binding to a lower port than 1024, etc.
apt-get install bubblewrap -t ~/.my_bins
work? – Charlie Parker Dec 06 '22 at 01:59