title: Centos Python2.7 YUM Dependency Resolution with Python2.7
body: <p>I am trying to use a Centos box for a Vagrant VM (because I think it’s the closest thing to an AWS Amazon Linux machine).</p>
  
  <h1><strong>The Problem</strong></h1>
  
  <p>Amazon Linux has python2.6 as the system python but there’s also a python2.7 package available with the Amazon repo.</p>
  
  <p>Centos does’t have a python2.7 package available.</p>
  
  <p>I can’t resolve python2.7 dependencies when yum installing particular packages.</p>
  
  <h1><strong>Things I have tried</strong></h1>
  
  <ol>
  <li><p>Using the SCL python27 - As far as I can tell, it only works with an SCL bash session and doesn’t resolve dependencies when using yum to install packages.</p></li>
  <li><p>Downloading python2.7 and building an RPM package (using FPM) to locally install using yum and rpm - This successfully installs python2.7 but it does not resolve dependency failures</p></li>
  <li><p>I also have a repo on my host machine (running Fedora) to hold all my custom rpm packages. I copied the rpm I created on the Centos VM to the repo and although it does install, it also does not resolve the dependency failure either.</p></li>
  </ol>
  
  <p>I am now out of ideas so any help would be appreciated.</p>
  
  <h1>Example Dependency Error</h1>
  
  <p>This is the YUM error I get when trying to install a package.  I get this when using an scl python27 shell too.</p>
  
  <pre><code>Error: Package: python27-djangorestframework-2.3.7-1.noarch (WFRepo)
      Requires: python(abi) = 2.7
      Installed: python-2.6.6-64.el6.x86_64 (@anaconda-CentOS-201508042137.x86_64/6.7)
          python(abi) = 2.6
  </code></pre>