Location of Python modules

bruno at modulix onurb at xiludom.gro
Mon Feb 13 13:25:35 EST 2006


Byte wrote:
> Pretty much self explanatry, where are Python modules stored in Linux?
> (i.e. in /usr/bin/local, or where?)
> 
Depends on how you installed Python (or how your distro package system
installed it). But it's usually in $PREFIX/lib/pythonX.X , with $PREFIX
being one of /usr or /usr/local (third-part modules being in the
site-packages subdirectory).

-- 
bruno desthuilliers
python -c "print '@'.join(['.'.join([w[::-1] for w in p.split('.')]) for
p in 'onurb at xiludom.gro'.split('@')])"



More information about the Python-list mailing list