pip install web.py==0.40-dev1,安裝了web.py, 并命令窗口web.py測(cè)試報(bào)錯(cuò)
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
2019-08-13
為什么我的不好使呀????啊啊啊啊啊啊啊啊啊啊啊
2018-09-15
為什么我的還是不行呢?
2018-07-08
已找到解決: 是python3.x? 版安裝web.py . ?? 命令是: pip? install? web.py==0.40dex1 ? , ? pip? install web.py? 默認(rèn)安裝的是python2.x版,我用的是python3.6.6, 成功。?