Non-unique dirs in sys.path

Ian Kelly ian.g.kelly at
Fri Jan 9 23:49:54 CET 2015

On Fri, Jan 9, 2015 at 2:24 PM, Gisle Vanem <gvanem at> wrote:
> Ian Kelly wrote:
>> I checked my own Python 2.7 installation and discovered that I have
>> the same problem, although without the different casing. Perusing the
>> .pth files in site-packages turns up setuptools.pth, which just
>> contains the site-packages path. Removing that file solves the issue
>> for me.
> That was the case here too! Deleted my setuptools.pth and the "problem"
> was gone. It would be nice to know how these .pth files are involved in
> extending the 'sys.path[]'. Who does that and how? Any good reference on
> that?

The automatically imported site module processes the .pth files.

More information about the Python-list mailing list