我已经安装了 CherryPy 3.1.0,。以下是我尝试运行教程 9 时发生的情况:
$ cd /Library/Python/2.5/site-packages/cherrypy/tutorial/
$ python tut09_files.py
Traceback (most recent call last):
File "tut09_files.py", line 48, in <module>
from cherrypy.lib import static
ImportError: cannot import name static
文件中的上一行:
import cherrypy
通过没有错误,所以它似乎可以在路径上找到cherrypy。我错过了什么?