سؤال

وأنا مجرد تركيب TurboGears2 على ويندوز 7 تشغيل بيئة افتراضية (الثعبان 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
مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top