#python #windows-7 #turbogears2 #paster
#python #windows-7 #turbogears2 #paster
Вопрос:
Я просто устанавливаю TurboGears2 в Windows 7 под управлением виртуальной среды (python 2.7). Я не вижу опции быстрого запуска paster при запуске
paster --help
Вместо этого вот этот вывод:
(VirtualEnv_1) C:VirtualEnv_1Scripts>paster --help
Usage: paster-script.py [paster_options] COMMAND [command_options]
Options:
--version show program's version number and exit
--plugin=PLUGINS Add a plugin to the list of commands (plugins are Egg
specs; will also require() the Egg)
-h, --help Show this help message
Commands:
create Create the file layout for a Python distribution
help Display help
make-config Install a package and create a fresh config file/directory
points Show information about entry points
post Run a request for the described application
request Run a request for the described application
serve Serve the described application
setup-app Setup an application, given a config file
TurboGears2:
tginfo Show TurboGears 2 related projects and their versions
Поэтому неудивительно, что когда я запускаю :
(VirtualEnv_1) C:VirtualEnv_1Scripts>paster quickstart
Я получаю:
Command 'quickstart' not known (you may need to run setup.py egg_info)
Known commands:
create Create the file layout for a Python distribution
exe Run #! executable files
help Display help
make-config Install a package and create a fresh config file/directory
points Show information about entry points
post Run a request for the described application
request Run a request for the described application
serve Serve the described application
setup-app Setup an application, given a config file
tginfo Show TurboGears 2 related projects and their versions
Мои вопросы: Почему он отсутствует и как мне его получить?
Ответ №1:
Вы попадаете в эту ситуацию, когда вы установили пакет, необходимый для запуска приложения TurboGears ( TurboGears2
), но не тот, который требуется для разработки приложения TurboGears ( tg.devtools
).
Выполнение следующей команды в вашем virtualenv должно установить правильный пакет:
easy_install -i http://www.turbogears.org/2.1/downloads/current/index tg.devtools
Комментарии:
1. Спасибо, сэр! Почему это не более очевидно в их документации, это преступление против человечества 🙂