我已按照金字塔的安装说明进行操作:
http://docs.pylonsproject.org/projects/pyramid/en/1.4-branch/narr/install.html
然后尝试运行hello world程序:
../bin/python helloworld.py
Traceback (most recent call last):
File "helloworld.py", line 1, in <module>
from wsgi.simple_server import make_server
谷歌搜索没有得到答案,可能是因为我是蟒蛇新手。
从这里阅读: http://docs.pylonsproject.org/projects/pyramid/en/1.4-branch/narr/firstapp.html#firstapp-chapter
答案 0 :(得分:3)
根据您提供的链接,wsgi模块的名称为 wsgiref ,因此第1行应为:
from wsgiref.simple_server import make_server