How to install PythonMagick on Amazon Elastic Beanstalk
<p>Since PythonMagick is not available through PIP package manager, how can I install PythonMagick on Amazon Elastic Beanstalk?</p>

<p>To install Python packages on Amazon Beanstalk, you have to run add a command in our .ebextension/*.config file. Amazon Linux AMIs in Beanstalk are not shipped with pip but easy_install.</p>

<p>These commands run before the application and web server are set up and the application version file is extracted.</p>

<pre><code>commands:
   01_install_pythonmagick:
       command: 'easy_install PythonMagick' 
</code></pre>

<p>or You can install it with the Debian package manager: </p>

<pre><code>commands:
   install_packages:
       command: sudo apt-get install python-pythonmagick   [Debian]*
</code></pre>

<p>or in Ubuntu:</p>

<pre><code>       command: sudo yum install python-pythonmagick        [Ubuntu]
</code></pre>

<hr>

<p>By other hand, the config files must be part of an .ebextensions directory added to your project sources.</p>

<p>When deploying your code using the eb create / eb deploy command line, these commands are using the git archive commands to package your code and upload it to Elastic Beanstalk for deployment</p>

<p>When your .ebextensions is not under git control (like being in .gitignore) for example, the directory and its config files are not packaged and not sent to Elastic Beanstalk.</p>

<p>Be sure that you add and commit .ebextensions directory before tod deploy to Elastic Beanstalk.</p>

python pythonmagick