Sign up ×  I'm on a SUSE machine where the default Python site-
packages location is /usr/lib64/python2.6/site-packages. Some
packages automatically install themselves in
/usr/lib/python2.6/site-packages instead. How do I configure
Python so that it also looks in /usr/lib64/python2.6/site-
packages?  share|improve this question I guess that PYTHONPATH
could do the job. Look in "6.1.2. The Module Search Path". – 
ierax Mar 25 '11 at 20:23 I don't want to force everyone to have
to PYTHONPATH defined. Isn't there a way to change the default?
–  Lorin Hochstein Mar 25 '11 at 20:35 lorin, you can either set
an environment variable (like PYTHONHOME), copy the python
executable, create a wrapper script, copy the executable to a
different directory, or recompile the program to use a path
other than the program directory. –  Arcege Mar 26 '11 at 1:29
2 Answers 2  up vote 3 down vote accepted  (Please correct
errors and omissions as necessary. Thanks.)  First, a question
and a comment. I don't use SUSE, so take this wit