$ pip -V
pip 18.1 from /home/user/.asdf/installs/python/3.6.10/lib/python3.6/site-packages/pip (python 3.6)
$ pip install ps_mem
Collecting ps_mem
Downloading https://files.pythonhosted.org/packages/46/81/ff8429735e2eb13be225dcfabef16d90bfa96b559e3f2643935d33b67697/ps_mem-3.12.tar.gz
Installing collected packages: ps-mem
Running setup.py install for ps-mem ... done
Successfully installed ps-mem-3.12
You are using pip version 18.1, however version 20.2b1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
$ ps_mem
-bash: ps_mem: command not found
$ asdf reshim
$ ps_mem
Sorry, root permission required, or specify pids with -p
$ sudo ps_mem
unknown command: ps_mem. Perhaps you have to reshim?
$ asdf exec ps_mem
Sorry, root permission required, or specify pids with -p
$ sudo asdf exec ps_mem
unknown command: ps_mem. Perhaps you have to reshim?
I don't think there is an easy way around this. You would need to install asdf as root, and install whatever command you want to use as root from within this asdf.