Where are python module installed?

Diez B. Roggisch deets at nospam.web.de
Mon Sep 21 05:25:31 CEST 2009

Peng Yu schrieb:
> On Sun, Sep 20, 2009 at 8:37 PM, Daniel Fetchinson
> <fetchinson at googlemail.com> wrote:
>>> I configured python-2.6.2 with my own --prefix, then 'make' and 'make
>>> install'. I only find the following dirs and I don't find any python
>>> modules in the directory. Do python modules come with python-2.6.2?
>>> $ ls
>>> bin  include  lib  share
>> Try 'ls lib/python*' and also 'ls lib/python*/site-packages/'
> Do I need to set PYTHONPATH to lib/python* because I changed the
> default 'prefix'?

It would have taken shorter to *try* that than it would to write this 
mail. So go, try it. Hint:

 >>> import foo
 >>> foo.__file__


More information about the Python-list mailing list