Where is a module usually installed?

Mark Lawrence breamoreboy at yahoo.co.uk
Sat Jul 17 04:01:40 EDT 2010


On 17/07/2010 03:36, Peng Yu wrote:
> My Python is installed in the following location.
> ~/utility/linux/opt/Python-2.6.5/
>
> I then installed SCons (http://www.scons.org/) using the command
> "python setup.py install", which install it at
> ~/utility/linux/opt/Python-2.6.5/lib/scons-2.0.0.final.0
>
> sys.path doesn't have the above directory. I have to add it to my PYTHONPATH.
>
> Would a python module usually be installed at the following location?
> ~/utility/linux/opt/Python-2.6.5/lib/python2.6
>

See the following for an explanation.

http://docs.python.org/release/2.6.5/library/site.html#module-site

HTH.

Mark Lawrence




More information about the Python-list mailing list