python 環境變數

一個 python 環境變數參考

#!/bin/csh -f

setenv PYTHONHOME /usr/local/python/python-2.7.3
setenv PYTHONVERSION 2.7
setenv PYTHONPATH $PYTHONHOME/lib:$PYTHONHOME/lib/python2.7
#
# If you have other python library, please add your libary to $PYTHINPATH
# ex. SETENV PYTHONPATH {PYTHONPATH}:$YOUR_PATHON_LIBRARY

#setenv USE_PYTHON64 y
set path = ( $PYTHONHOME/bin $path )

廣告