0

我正在尝试安装 TurboGear 2。我按照本文档中给出的步骤进行操作。链接:http ://toscawidgets.org/documentation/tw2.core/turbogears.html

在执行此命令时

pip install -e .

我收到了这个错误

No distributions at all found for repose.who-friendlyform>=1.0.4 (from example==0.1dev)

然后用这个命令

python setup.py develop

我收到了这个错误

Searching for repose.who-friendlyform>=1.0.4
Reading https://pypi.python.org/simple/repose.who-friendlyform/
Couldn't find index page for 'repose.who-friendlyform' (maybe misspelled?)
Scanning index of all packages (this may take a while)
Reading https://pypi.python.org/simple/
No local packages or download links found for repose.who-friendlyform>=1.0.4
error: Could not find suitable distribution for Requirement.parse('repose.who-friendlyform>=1.0.4')

我尝试使用 easy_install 安装它,但没有成功。我该如何克服这个错误?

4

1 回答 1

0

您指向的文档已经过时了,您尝试使用哪个 TurboGears 版本?最新的 TG 版本不再依赖于 repoze.who-friendlyform。尝试删除您的 virtualenv,重新创建它,然后使用pip install tg.devtools.

您可以在http://turbogears.readthedocs.org/en/latest/#installing-turbogears上找到最新的 TG 版本文档以及在http://turbogears.readthedocs.org/en/latest/cookbook/TwForms上使用 ToscaWidgets 的教程.html

最新的 ToscaWidgets 文档也已移至http://tw2core.readthedocs.org/en/latest/

如果你想尝试 TG2 和 Forms,还有一堆你可以玩的 runnables:http ://runnable.com/TurboGears

于 2013-12-21T23:18:16.497 回答