pip install web.py==0.40-dev1,安装了web.py, 并命令窗口web.py测试报错

来源:1-4 web.py测试

大海中的小船

2018-07-07 19:31

D:\Programs\web.py-project>pip list
Package    Version
---------- ---------
pip        10.0.1
setuptools 39.0.1
web.py     0.40.dev1

D:\Programs\web.py-project>python hello.py
Traceback (most recent call last):
  File "D:\Programs\Python\Python37\lib\site-packages\web\utils.py", line 526, in take
    yield next(seq)
StopIteration

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "hello.py", line 6, in <module>
    app = web.application(urls, globals())
  File "D:\Programs\Python\Python37\lib\site-packages\web\application.py", line 62, in __init__
    self.init_mapping(mapping)
  File "D:\Programs\Python\Python37\lib\site-packages\web\application.py", line 130, in init_mapping
    self.mapping = list(utils.group(mapping, 2))
  File "D:\Programs\Python\Python37\lib\site-packages\web\utils.py", line 531, in group
    x = list(take(seq, size))
RuntimeError: generator raised StopIteration

https://img2.mukewang.com/5b40a46d00017b7919050804.jpg

写回答 关注

3回答

  • qq_初衷追梦_0
    2019-08-13 14:37:28

    为什么我的不好使呀????啊啊啊啊啊啊啊啊啊啊啊

  • 慕仙5817179
    2018-09-15 14:32:31

    https://img4.mukewang.com/5b9ca75d0001692f05770234.jpg


    https://img2.mukewang.com/5b9ca76b0001499510460483.jpg


    为什么我的还是不行呢?


    温裕 回复慕UI550...

    谢谢大佬!

    2019-01-10 11:44:28

    共 5 条回复 >

  • 大海中的小船
    2018-07-08 02:50:15

    已找到解决: 是python3.x  版安装web.py .    命令是: pip  install  web.py==0.40dex1   ,   pip  install web.py  默认安装的是python2.x版,我用的是python3.6.6, 成功。 

python-web.py开发入门

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

58639 学习 · 106 问题

查看课程

相似问题