you would use pip not actually on the OS but inside a snap package you create containing your application/script, take a look at: