I am using terminal which uses -bash shell
ps -p$$ -ocommand= ---> -bash
echo $PATH returns:
-bash: /usr/local/bin:/Library/Frameworks/Python.framework/Versions/3.5/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/Users/alex_fimm_dev/Desktop/Databases/Mongo/mongodb/bin:/Users/alex_fimm_dev/Desktop/Databases/Mongo/mongodb/bin:/usr/local/Cellar/android-sdk/24.4.1_1/tools:/usr/local/Cellar/android-sdk/24.4.1_1/platform-tools
echo $PYTHONPATH -----> returns nothing
Need to set $PYTHONPATH to a /directory/of/choice
Unsuccessfully I have tried:
export PYTHONPATH=$PATH:/directory/of/choice
Also write to: nano .bash_profile:
export PYTHONPATH=$(/directory/of/choice)
Also I have closed terminal in between to check for changes.
export path in all following files:
like:
did the trick for me. As described in:
PYTHONPATH in OS X