After trying to upgrade my Arch Linux today running

pacman -Syu

I got this error:

error: failed to commit transaction (conflicting files)
python2-distribute: /usr/lib/python2.7/site-packages/pkg_resources.pyo exists in filesystem

Solving the “python2-distribute: /usr/lib/python2.7/site-packages/pkg_resources.pyo exists in filesystem” error

First check which package is using python2-distribute

pacman -Qi python2-distribute

Here is my output

Name           : python2-distribute
Version        : 0.6.14-2
URL            :
Licenses       : PSF
Groups         : None
Provides       : setuptools=0.6c11
Depends On     : python2
Optional Deps  : None
Required By    : None
Conflicts With : setuptools
Replaces       : setuptools
Installed Size : 1288.00 K
Packager       : St├ęphane Gaudreault <>
Architecture   : any
Build Date     : Fri 22 Oct 2010 09:23:10 PM BOT
Install Date   : Mon 01 Nov 2010 06:15:02 PM BOT
Install Reason : Installed as a dependency for another package
Install Script : No
Description    : A collection of extensions to the Python 2 distutils

As in my case no package is requiring phyton2-distribute I can safely remove it.

pacman -R python2-distribute

After all run OK.

If you have any package requiring phython2-distribute try first doing the same as above, as I got this while upgrading (53/61) upgrading python-distribute . If your program stop working remove it and reinstall, pacman should once again install all dependencies needed.

Note: I have not tested the last part of this how-to, in my case no package were needing phyton2-distribute, be careful, you are on your own