Question

Je suis installer simplement TurboGears2 sur Windows 7 l'exécution d'un environnement virtuel (python 2.7). Je ne vois pas l'option QuickStart Paster quand je lance

paster --help

Au lieu de cela, voici que la production:

(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

Alors, il est pas surprenant que quand je lance:

(VirtualEnv_1) C:\VirtualEnv_1\Scripts>paster quickstart

J'obtenir:

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

Mes questions: Pourquoi est-il manque, et comment puis-je le

Était-ce utile?

La solution

Vous entrez dans cette situation lorsque vous avez installé le package nécessaire pour run une application de TurboGears (de TurboGears2), mais pas celui nécessaire pour développer une application de TurboGears ( tg.devtools).

L'exécution de la commande suivante alors que dans votre virtualenv devrait installer le package correct:

easy_install -i http://www.turbogears.org/2.1/downloads/current/index tg.devtools
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top