0

relatively long-time PHP user here. I could install XAMPP in my sleep at this point to the point where I can get a PHP script running in the browser at "localhost", but in my searches to find a similar path using Python, I've run out of Googling ideas. I've discovered the mod_python Apache mod, but then I also discovered that it's been discontinued. I'd greatly prefer to do my Python learning in a browser as opposed to the command prompt, so if anybody could point me along the proper path, I'd be very grateful.

Thanks!

treeface
  • 13,270
  • 4
  • 51
  • 57

3 Answers3

5

well mod_python has been retired. So in order to host python apps you want mod_wsgi

http://code.google.com/p/modwsgi/

But python isn't really like php(as in you mix it with html to get output, if I understand your question correctly). In learning python, using the command line/repl will probably be much more useful/straight forward I would think. If you are looking for python as primarily web development you should look into django (http://www.djangoproject.com/) as that might be closer to what you are looking for..

Doon
  • 19,719
  • 3
  • 40
  • 44
4

Most Python webframeworks have a built-in minimal development server:

But don't be afraid of the command line. Python has a great interactive console (just run python) and there's an even better one: IPython.

Benjamin Wohlwend
  • 30,958
  • 11
  • 90
  • 100
2

Many options, here are a couple:

tcarobruce
  • 3,773
  • 21
  • 33