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
  • 81,433
  • 63
  • 146
  • 187
gaviscon_man
  • 963
  • 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
  • 574,206
  • 118
  • 941
  • 841