nano ~/.bashrc
type this command editor will open.
Then add this line in the file.
PATH=$PATH:~/.local/bin/
Then restart shell using , exec bash.
This is only help i can do as i stopped working on erpNext. Last time i worked on erpNext was a year ago.