Harsh J

Memoirs of a QWERTY Keyboard

Ubuntu 9.04 Python 2.6 Site-Packages Directory

5 comments

Strangely the site-packages directory used by Python (2.6) to place/install modules and packages is nowhere to be found in Ubuntu’s Jaunty Jackalope. The newer directory is called dist-packages, no idea why (Only know that it sounds like its for distribution-installed modules).

So to place a package or a link to one, simply do so in the /usr/local/lib/python2.6/dist-packages/ directory.

Written by Harsh

May 13th, 2009 at 1:09 am

Posted in Linux,Software

Tagged with , ,

5 Responses to 'Ubuntu 9.04 Python 2.6 Site-Packages Directory'

Subscribe to comments with RSS or TrackBack to 'Ubuntu 9.04 Python 2.6 Site-Packages Directory'.

  1. or in ~/.local/lib/python2.6/site-packages (since python2.6, http://www.python.org/dev/peps/pep-0370/)

    pH7

    25 May 09 at 9:10 pm

  2. Yes, there if you want it to be local (per-user). I’ve written that tip elsewhere! :)

    Harsh

    25 May 09 at 9:14 pm

  3. you might be looking for: /usr/share/python-support/
    i know lots of packages install to that directory

    Jeff

    25 Jun 09 at 2:50 am

  4. Actually In python 3 the directory is back again
    /usr/local/lib/python3.0/site-packages/

    hasan

    29 Nov 09 at 1:58 pm

  5. If you’re making your own packages, this might be helpful:

    http://www.mattvsworld.com/blog/2010/01/ubuntu-distutils-site-packages-vs-dist-packages/

    mattvsworld

    15 Jan 10 at 9:22 am

Leave a Reply