How to do it inside the program
import sys,os
sys.path.append('Directory where the module is installed')
(Example)
sys.path.append('/tmp/hoge/lib/python2.7/site-packages')
Command line
export PYTHONPATH=Directory where the module is installed
(Example)
export PYTHONPATH='/tmp/hoge/lib/python2.7/site-packages'
Recommended Posts