帕斯特快速启动不是一种选择
-
27-10-2019 - |
题
我只是在Windows 7上安装TurboGears2运行的虚拟环境(Python 2.7版)。我没有看到贴快速启动选项,当我运行
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
我的问题:为什么失踪了,我怎么得到它
解决方案
您进入,当你需要安装的软件包这种情况的运行的一个TurboGears的应用程序(TurboGears2
),但不是一个必须的制定的一个的TurboGears应用程序( tg.devtools
)。
运行下面的命令,而在您的virtualenv应该安装正确的程序包:
easy_install -i http://www.turbogears.org/2.1/downloads/current/index tg.devtools
不隶属于 StackOverflow