In Centos 7 system, what is the default pythonpath enviroment? Before I make any pythonpath setting, the command "echo $PYTHONPATH" gives no output. After I make the following setting:
PYTHONPATH="{$PYTHONPATH}:/usr/lib/python2.7/site-packages:/usr/lib64/python2.7/site-packages/pandas:/app/anaconda2/pkgs"
export PYTHONPATH=$PYTHONPATH:/app/Jade
the command "echo $PYTHONPATH" gives the following output:
:/app/Jade
I don't understand why before "/app/Jade" there is an extra colon (:). And what is the correct way to set PYTHONPATH?
Best regards.
Yeping Sun
{$PYTHONPATH}is an error. That would result in an invalid path containing literal{and}characters. I think you mean${PYTHONPATH}.echocommand all happen in the same shell). Are you sure the commands you are typing match exactly what you have posted here? What happens if you copy and paste?