Is there a *nix whose package manager doesn't split Python into multiple packages (typically something like python and python-devel). I'd really like to just get the entire standard library when I install it, since that's how it's designed to work. Thanks.

UPDATE: Some people are wondering what I mean, so here's an example: https://bugs.launchpad.net/ubuntu/+source/python-defaults/+bug/123755. I realize it's not caused (in this instance) by a python/python-devel split, but it's the sort of issue I don't want to worry about. I just want to install the entirety of Python—with no weird tweaks of the ImportError handler, or std lib modules ripped out (for any reason)—and then let my package manager handle security updates, etc.

  • 1
    Once you install python you should have "the entire standard library" already. What's the problem with that? – phunehehe Mar 29 '11 at 1:43
  • I agree with phunehehe -- I'm not sure this question makes sense... – simon Mar 29 '11 at 6:09
  • @simon: It isn't that. I think OP just doesn't know. She sees -devel and thinks, oh, that means it has Python stdlib. – Tshepang Mar 29 '11 at 8:00
  • devel is just header files. you don't need this unless you are going to compile/link against a python library. – Faheem Mitha Mar 29 '11 at 9:21
  • 1
    @phunehehe @tshepang @simon @faheem it's really annoying to try to do any kind of real dev work on a system with split packages imo. This question makes sense, esp if you start thinking outside of python, and start. the -devel packages can be a real problem if you're using an external repo, or a backport, or something else, because then -devel doesn't always line up with the binary that's installed. I know I've had it. I don't use debian or suse, or any system that works like this for this very reason. So I think it's a good question. – xenoterracide Mar 29 '11 at 9:31

Arch Linux doesn't have separate packages for -dev and it's binary (unlike gentoo). There might be a few things, like tk which isn't pulled in by default. Here's the python package for arch.

  • Oh, I see Arch Linux has a relaxed view regarding non-libre software. – Tshepang Mar 29 '11 at 23:37
  • 1
    which is fine with me... I want it to work – xenoterracide Mar 30 '11 at 4:35

Well, there's Gentoo. Since it installs everything from source, there are no -dev packages.


On Debian (and therefore probably Ubuntu), running apt-get install python installs python-minimal and python, which results in all core modules being installed, which I assume is what you mean by "the entire standard library".

The only caveat I can find is that the Tk GUI stuff is all installed, but you need to install the python-tk package to use it properly.

>>> import Tkinter
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python2.5/lib-tk/Tkinter.py", line 41, in <module>
    raise ImportError, str(msg) + ', please install the python-tk package'
ImportError: No module named _tkinter, please install the python-tk package

So run apt-get install python python-tk, and you have everything you need.

Does that meet your criteria?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.