Python 2.7 on Openshift V3: update setuptools before build?
问题 When installing cryptography package I get the following error: Invalid environment marker: platform_python_implementation != 'PyPy' It seems upgrading setuptools would solve this. Is there a way I could edit Build Config YAML file so that pip install --upgrade setuptools runs before any package is built? 回答1: Run: oc set env bc/yourappname UPGRADE_PIP_TO_LATEST=true See: https://github.com/sclorg/s2i-python-container/tree/master/2.7 When you do this it should update pip , setuptools and