Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]

couldn’t use any bench command on server
always return:

    Could not find platform independent libraries <prefix>
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
Fatal Python error: Py_Initialize: Unable to get the locale encoding
ImportError: No module named 'encodings'

Current thread 0x00007f50e454e740 (most recent call first):
Aborted (core dumped)

i have reinstalled python and then set python home to the right path
export PYTHONHOME=‘user/bin/python2’ then it worked well