Web.py / No module named 'utils'`

后端 未结 3 1037
名媛妹妹
名媛妹妹 2021-02-12 17:57

I\'m trying to install web.py, and I did the next steps:

  • Download web.py-0.3.7, and extract it on c://web.py-0.3.7

  • Run

相关标签:
3条回答
  • 2021-02-12 18:33

    I had this same Error using pip install. I just ran pip2 install web.py and it successfully installed. (for anyone still reading this in 2016)

    0 讨论(0)
  • 2021-02-12 18:45

    The issue is web.py is native for python 2.7+, however, there are several options.

    • Install python 2.7+ (recommend using virtualenv)
    • Check out this group that is porting web.py to python 3.x
    • Use bottle.py as an alternative (Native to 2.5+ and 3.x)

    Aside from these options to directly address the issue of 'utils' not being found, you can download the package here. This does not get around the compatibility issues but just for reference.

    0 讨论(0)
  • 2021-02-12 18:48

    web/__init__.py relies on relative path. Try this:

    pip install web.py==0.40.dev0

    A website had this solution

    0 讨论(0)
提交回复
热议问题