2013-12-20 79 views
0

我正在嘗試安裝TurboGear 2.我按照本文檔中給出的步驟操作。鏈接:http://toscawidgets.org/documentation/tw2.core/turbogears.htmlTurboGears 2中的repose.who-friendlyform依賴關係

在執行此命令

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安裝它,但沒有奏效。我怎樣才能克服這個錯誤?

回答

0

您指向的文檔相當過時,您試圖使用哪種TurboGears版本?最新的TG版本不再依賴於repoze.who-friendlyform。嘗試刪除你的virtualenv,重新創建它,然後用pip install tg.devtools安裝TurboGears。

你可以在http://turbogears.readthedocs.org/en/latest/cookbook/TwForms.html

而且最新ToscaWidgets文檔已經在http://tw2core.readthedocs.org/en/latest/

被移動發現使用ToscaWidgets在教程http://turbogears.readthedocs.org/en/latest/#installing-turbogears最新的TG版本的文檔如果你想與TG2實驗和表格也有一堆你可以玩的runnables:http://runnable.com/TurboGears