views:

264

answers:

6

Which linux distro is better suited for Python web development?

Background:

I currently develop on Windows and it's fine, but I am looking to move my core Python development to Linux. I'm sure most any distro will work fine, but does anyone have any reasons to believe one distro is better than another?

+10  A: 

Largely distribution won't matter, as Python is present and largely self sufficient on virtually all Linux distributions.

If you're wanting to focus on development, I'd recommend Ubuntu. Ubuntu is arguably one of the most fully featured "ready for the user" distributions that makes system administration a snap, so you can focus on the development tasks you want to tackle.

If you have a Linux environment that's a target for your code (like say, RedHat or something), then go with the desktop distribution that matches your target environment (like, say, Fedora for RedHat, Gentoo for Gentoo, Ubuntu for Ubuntu Server, etc.)

Otherwise, all of them are suitable.

Travis Bradshaw
For development I'd recommend Xubuntu (ubuntu with XFCE), it has much less "bloat" and doesn't get in your way as much.
hasen j
Ubuntu is also quite python-loving and has up-to-date python versions.
Beni Cherniavsky-Paskin
Though when a new Python comes out, you have to wait until the next Ubuntu release for it to be included in the system. That drove me crazy waiting for Python 2.6.
LeafStorm
While that's true, you could replace "Ubuntu" with the name of every distribution without a loss in meaning. (Of course, you can install software without waiting on the distribution, but it's a much more "on-your-own" type of thing.)
Travis Bradshaw
I've used Ubuntu before and like it just fine. I guess I was looking to see if there was something I was missing amongst all the Ubuntu craze out there.
Ryan Montgomery
Ah. Nope. Generally speaking, a distro is a distro when it comes to developing on Linux, especially Python. Ubuntu makes the things that normally get in the way of productive development easier, so it's the current favorite. /me shrugs
Travis Bradshaw
A: 

I use RHEL and have been very happy, so from that I would say Fedora would be fine. I use Debian at home, and it's great (headless though, so no web there).

That said, I think you should probably just pick one based on what your company uses, or any number of non-Python reasons. I don't think you are going to find Python tool availability an issue with any Linux distribution.

Tim Crone
+5  A: 

You distribution should have Python 2.6. Otherwise it's a matter of choice.

One advice: Never ever install anything as root (eg. python setup.py install). Only install things with your distribution's package manager and use virtualenv as a user to install other packages.

Ubuntu has a virtualenv package and it can even be used without being installed.

ebo
+1 for mentioning virtualenv. It saves a lot of trouble.
Noufal Ibrahim
Thanks for the good advise - virtualenv is definitely a good practice.
Ryan Montgomery
A: 

Most major distributions will include Python and Apache, so it's really just a matter of choice. If you're new to Linux, I'd suggest either Ubuntu or Fedora. Both are great for new users and have excellent community support.

Erich Douglass
A: 

As the other answers have mentioned so far, the Python 2.6 interpreter will be available on all recent Linux distribution releases. That shouldn't influence your choice.

However, your choice of IDE may eliminate some possibilities. You should make sure the distribution you select has a package for the latest version of your IDE, and that it is updated often enough.

As an example, I like to use Eclipse with PyDev for developing Python apps in either OS, but Ubuntu's official repositories had only Eclipse 3.2 (from 2006) until October of last year, when they finally updated to 3.5 in the latest distribution.

Series8217
A: 

I am working with Python on Cento 5.4 and Fedora 12 and I am very happy.

I also use Eclipse IDE for python and other languages without having any major issues.

TheMadAdmin