Я пытаюсь установить пакет peewee на экземпляр из эластичного бобового стебля, чтобы контролировать применение бутылки. Я думаю, что проблема связана с зависимостью MySQL-python, но peewee тоже не загружается. Мои требования файл выглядит следующим образом:Получение peewee для работы на эластичном бобовом стебле
bottle==0.11.6
peewee==2.1.1
MySQL-python
Я также попытался MySQL-python
в MySQL-python==1.2.4b4
. По ряду причин, которые, как мне кажется, суммируются here, это не работает; peewee не установлен, и я получаю это сообщение об ошибке в журнале:
2013-05-18 06:57:08,407 [INFO] (15947 MainThread) [directoryHooksExecutor.py-29] [root directoryHooksExecutor info] Script succeeded.
2013-05-18 06:57:08,408 [INFO] (15947 MainThread) [directoryHooksExecutor.py-29] [root directoryHooksExecutor info] Executing script: /opt/elasticbeanstalk/hooks/appdeploy/pre/03deploy.py
2013-05-18 06:57:18,663 [INFO] (15947 MainThread) [directoryHooksExecutor.py-29] [root directoryHooksExecutor info] Output from script: New python executable in /opt/python/run/venv/bin/python2.6
Not overwriting existing python script /opt/python/run/venv/bin/python (you must use /opt/python/run/venv/bin/python2.6)
Installing distribute..................................................................................................................................................................................................done.
Installing pip................done.
Requirement already satisfied (use --upgrade to upgrade): bottle==0.11.6 in /opt/python/run/venv/lib/python2.6/site-packages (from -r /opt/python/ondeck/app/requirements.txt (line 1))
Downloading/unpacking peewee==2.1.1 (from -r /opt/python/ondeck/app/requirements.txt (line 2))
Running setup.py egg_info for package peewee
Downloading/unpacking MySQL-python (from -r /opt/python/ondeck/app/requirements.txt (line 3))
Running setup.py egg_info for package MySQL-python
The required version of distribute (>=0.6.28) is not available,
and can't be installed while this script is running. Please
install a more recent version first, using
'easy_install -U distribute'.
(Currently using distribute 0.6.27 (/opt/python/run/venv/lib/python2.6/site-packages/distribute-0.6.27-py2.6.egg))
Complete output from command python setup.py egg_info:
The required version of distribute (>=0.6.28) is not available,
and can't be installed while this script is running. Please
install a more recent version first, using
'easy_install -U distribute'.
Так что для этих пакетов ничего не получается. Я уверен, что смогу это исправить, подключившись к экземпляру EC2 и установив MySQL-python без пипса, но мне кажется, что это победит цель эластичного beanstalk, так как каждый раз, когда запускается новый экземпляр, мне нужно будет идти и ручку с ним вручную. Есть ли у меня подходящий способ справиться с этой проблемой? У меня также была такая же проблема, которая пыталась установить такие вещи, как scipy и matplotlib, так широко, есть ли способ, чтобы я мог устанавливать пакеты python на гибкие экземпляры beanstalk без пипса и не входить в каждый экземпляр отдельно? Должен ли я изучать, как создать пользовательский AMI и использовать его на beanstalk? Большое спасибо, Alex
Пробовали ли вы работаете: «easy_install -U распространять» – coleifer