How to install and use pandas on Openshift ?

Solution Verified - Updated -

Environment

  • Openshift Enterprise
    • 2.2
  • python 2.7
  • pandas

Issue

  • Pandas doesn't get installed when added to setup.py as a dependency in python 2.7 in Openshift Enterprise 2.2

Resolution

  1. Upgrade to Openshift Enterprise 2.2.8
  2. If the small gear is being used, update to at least the medium gear if not large
  3. Ssh to the application and rebuild pandas
    pip -i pandas
  1. Rebuild and upgrade numpy, matplotlib and cycler modules.
    pip -i -U nympy
    pip -i -U matplotlib
    pip -i -U cycler

This makes pandas usable on OpenShift 2.2

Root Cause

  • Possibly a bug in numpy

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.