【问题标题】:paster quickstart not an option粘贴快速入门不是一个选项
【发布时间】:2011-10-19 22:54:17
【问题描述】:

我只是在运行虚拟环境(python 2.7)的 Windows 7 上安装 TurboGears2。运行时没有看到 paste 快速启动选项

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

我的问题:为什么会丢失,我如何获得它?

【问题讨论】:

    标签: python windows-7 turbogears2 paster


    【解决方案1】:

    当您安装了运行 TurboGears 应用程序 (TurboGears2) 所需的软件包,而不是 开发 TurboGears 所需的软件包时,您会遇到这种情况应用程序 (tg.devtools)。

    在您的 virtualenv 中运行以下命令应该会安装正确的包:

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

    【讨论】:

    • 谢谢您,先生!为什么这在他们的文件中没有更明显的是对人类的犯罪:)
    猜你喜欢
    • 1970-01-01
    • 2014-11-12
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-03-09
    • 2012-03-19
    • 1970-01-01
    相关资源
    最近更新 更多