9

I'm using Ubuntu and noticed these two directories:

/usr/local/lib/python2.6/dist-packages

/usr/lib/python2.6/dist-packages

Which one should be used for installing Python packages?

Thanks.

Sridhar Ratnakumar
  • 75,681
  • 63
  • 142
  • 179
gaviscon_man
  • 933
  • 1
  • 8
  • 8

1 Answers1

11

Ubuntu packages in .deb format should use

/usr/lib/python2.6/dist-packages

Files you install outside the package management, i.e. files dpkg is unaware of, should go into

/usr/local/lib/python2.6/dist-packages

Se also the file system hierarchy standard.

Sven Marnach
  • 530,615
  • 113
  • 910
  • 808