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?
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 (likebottle.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: