Python: Alternative for web.py on python3

3.4k views Asked by At

I tried installing web.py module via pip, but I got an import error. Specifically

import utils, db, net, wsgi, http, webapi, httpserver, debugerror
ImportError: No module named 'utils'

So I realized that it had something to do with the fact that web.py is not compatible with python3.x. So the question is, what alternatives do I have? Would I be better of installing python 2.7+ alongside python3? Or is there a way I could use this module online with a python 2.7+ interpreter?

1

There are 1 answers

0
pbuck On

Right. The problem is web.py is not yet compatible with python3. A new version is on it's way, but you need to consider your current requirements. Python2 can easily live with python3, so that's a very viable option. So, if you're looking for near-term use & you don't want to learn something else (like bottle.py) feel free to use web.py and python27.

If you're experimenting and want to try web.py with python3, Anand has reported that python3 is almost ready. Install with:

pip install web.py==0.40.dev0