0

仮想環境(Python 2.7)を実行しているWindows7にTurboGears2をインストールしています。実行すると、パスタークイックスタートオプションが表示されません

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

私の質問:なぜそれが欠落しているのですか、そしてどうすればそれを入手できますか?

4

1 に答える 1

1

この状況は、TurboGears アプリの実行に必要なパッケージ ( ) をインストールしたが、TurboGearsアプリの開発に必要なパッケージ( TurboGears2) をインストールしていない場合に発生します。tg.devtools

virtualenv で次のコマンドを実行すると、正しいパッケージがインストールされます。

easy_install -i http://www.turbogears.org/2.1/downloads/current/index tg.devtools
于 2011-10-19T23:06:57.273 に答える