大海中的小船
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
为什么我的不好使呀????啊啊啊啊啊啊啊啊啊啊啊
为什么我的还是不行呢?
已找到解决: 是python3.x 版安装web.py . 命令是: pip install web.py==0.40dex1 , pip install web.py 默认安装的是python2.x版,我用的是python3.6.6, 成功。
python-web.py开发入门
58639 学习 · 106 问题
相似问题