【发布时间】:2009-10-08 08:32:23
【问题描述】:
我尝试在 Windows 7 和 Windows XP 上使用 Python 2.6 安装 TurboGears 2.0,但都给出了相同的错误:
File "D:\PythonProjects\tg2env\Scripts\paster-script.py", line 8, in <module>
load_entry_point('pastescript==1.7.3', 'console_scripts', 'paster')()
File "D:\PythonProjects\tg2env\lib\site-packages\pastescript-1.7.3-py2.6.egg\paste\script\command.py", line 73, in run
commands = get_commands()
File "D:\PythonProjects\tg2env\lib\site-packages\pastescript-1.7.3-py2.6.egg\paste\script\command.py", line 115, in get_
plugins = pluginlib.resolve_plugins(plugins)
File "D:\PythonProjects\tg2env\lib\site-packages\pastescript-1.7.3-py2.6.egg\paste\script\pluginlib.py", line 81, in res
pkg_resources.require(plugin)
File "D:\PythonProjects\tg2env\lib\site-packages\setuptools-0.6c9-py2.6.egg\pkg_resources.py", line 626, in require
File "D:\PythonProjects\tg2env\lib\site-packages\setuptools-0.6c9-py2.6.egg\pkg_resources.py", line 524, in resolve
pkg_resources.DistributionNotFound: zope.sqlalchemy>=0.4: Not Found for: City_Guide (did you run python setup.py develop?)
现在,根据主站点上的文档,TurboGears 2.0 在this page 中支持 Python 2.6:
TurboGears 适用于 2.4 到 2.6 之间的任何版本的 python。在撰写本文时,最广泛部署的 python 版本是 2.5 版。 python 2.4 和 python 2.6 都需要额外的步骤,这些步骤将在相应的部分中介绍。
但他们从未在文档中提及这些步骤。
【问题讨论】:
标签: python turbogears