pip install web.py 安装失败

来源:1-3 web.py安装

lcqbug

2018-01-28 17:31

我 的Python 版本3.4


错误信息如下

Collecting web.py
  Using cached web.py-0.38.tar.gz
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "C:\Users\lcqbug\AppData\Local\Temp\pip-build-pw5glk26\web.py\setup.p
y", line 6, in <module>
        from web import __version__
      File "C:\Users\lcqbug\AppData\Local\Temp\pip-build-pw5glk26\web.py\web\__i
nit__.py", line 14, in <module>
        import utils, db, net, wsgi, http, webapi, httpserver, debugerror
    ImportError: No module named 'utils'

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in C:\Users\lcqbug\A
ppData\Local\Temp\pip-build-pw5glk26\web.py\

写回答 关注

4回答

  • HWilu
    2019-07-03 11:28:35

    Get Started

    web.py 0.39 is the latest released version of web.py. You can install it by running:

    pip install web.py

    The above version only supports Python 2. If you looking for Python 3 support, try the experimental version.

    pip install web.py==0.40-dev1

    Or to get the latest development version from git:

    git clone git://github.com/webpy/webpy.git
    ln -s `pwd`/webpy/web .


  • 念奴娇
    2019-02-28 15:47:10

    pip uninstall web.py   卸载

    pip install web.py==0.40.dev0 

    修改Lib\site-packages\web 下的utils.py文件。
    将第526行的

    yield next(seq)1

    修改为

    try:
        yield next(seq)
    except StopIteration:
        return


  • nix1990
    2018-05-31 00:10:07

    pip install web.py==0.40.dev0  完美解决

  • 逐风成尘
    2018-01-29 11:25:30
    错误代码1
    文件位置问题
    设置一下环境变量


python-web.py开发入门

web.py开发入门入门教程,讲解一个你最快能学会的web开发的框架

58639 学习 · 106 问题

查看课程

相似问题