pip install Failed in OpenShift, the error info is Permission Denied

前端 未结 1 1173
醉话见心
醉话见心 2021-01-21 11:24

when I git push and rebuild my DIY application in OpenShift, the pip install failed, and the error is Permission Denied. does any one know why ?

I have no idea why pip

相关标签:
1条回答
  • 2021-01-21 12:03

    looks like pip install by default tries to write some information into your home directory, which you don't have access to write to on openshift. Have you tried using one of the pre-built python cartridges? They are setup to correctly install packages that you define within your application.

    If you are dead set on using a DIY gear, you might at least look at the code for the default python cartridges and see how they solve this same issue: https://github.com/openshift/origin-server/tree/master/cartridges

    0 讨论(0)
提交回复
热议问题