быстрый запуск Paster не вариант - PullRequest
0 голосов
/ 20 октября 2011

Я только что установил TurboGears2 на Windows 7 с виртуальной средой (python 2.7).Я не вижу опции быстрого запуска paster, когда я запускаю

paster --help

Вместо этого, вот что выводится:

(VirtualEnv_1) C:\VirtualEnv_1\Scripts>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_1\Scripts>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 Ответ

1 голос
/ 20 октября 2011

Вы попадаете в эту ситуацию, когда устанавливаете пакет, необходимый для запуска приложения TurboGears (TurboGears2), но не тот, который требуется для разработки приложения TurboGears (tg.devtools).

Выполнение следующей команды в вашем virtualenv должно установить правильный пакет:

easy_install -i http://www.turbogears.org/2.1/downloads/current/index tg.devtools
...