2015年9月1日 星期二

Add to python path mac os x

Modifications to sys.path only apply for the life of that Python interpreter. If you want to do it permanently you need to modify the PYTHONPATH environment variable:
PYTHONPATH="/Me/Documents/mydir:$PYTHONPATH"
export PYTHONPATH
Note that PATH is the system path for executables, which is completely separate.

reference : http://stackoverflow.com/questions/3387695/add-to-python-path-mac-os-x

沒有留言:

張貼留言