ボトル アプリケーションを制御するために、伸縮性のある Beanstalk インスタンスに peewee パッケージをインストールしようとしています。問題は MySQL-python 依存関係にあると思いますが、peewee も読み込まれません。私の要件ファイルは次のようになります。
bottle==0.11.6
peewee==2.1.1
MySQL-python
MySQL-python
としても試しましMySQL-python==1.2.4b4
た。ここに要約されていると私が信じる多くの理由により、これは機能しません。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'.
したがって、これらのパッケージでは pip は機能しません。EC2インスタンスに接続し、pipなしでMySQL-pythonをインストールすることでこれを修正できると確信していますが、新しいインスタンスが開始されるたびに私が行く必要があるため、弾性ビーンズトークの目的を無効にするように私には思えます手動でそれをいじります。この問題に対処する適切な方法はありますか? scipy や matplotlib などをインストールしようとしても同じ問題が発生しました。一般に、pip を使用せずに、各インスタンスに個別に入ることなく、伸縮性のある Beanstalk インスタンスに Python パッケージをインストールする方法はありますか? カスタム AMI を作成して Beanstalk で使用する方法を検討する必要がありますか? どうもありがとう、アレックス