Setting Path at Unix/Linux To add the Python directory to the path for a particular session in Unix â
In the csh shell â type setenv PATH "$PATH:/usr/local/bin/python3" and press Enter.
In the bash shell (Linux) â type export PYTHONPATH=/usr/local/bin/python3.4 and press Enter.
In the sh or ksh shell â type PATH = "$PATH:/usr/local/bin/python3" and press Enter.
Note â /usr/local/bin/python3 is the path of the Python directory.