Install python packages on OpenShift

后端 未结 2 552
暗喜
暗喜 2020-12-06 19:58

I\'m trying to install python packages on OpenShift but I see a dearth of pages about the best way to do this. Can someone please suggest the best way of getting on say

2条回答
  •  心在旅途
    2020-12-06 20:25

    Trying to install Python libraries via pip always results in OSError: [Errno 13] Permission denied errors for me. Not sure if this is a change in OpenShift behavior or a some misconfiguration on my part. For anyone else who has issues installing via pip, easy_install consistently works for me (at least with the Flask cartridge):

    [appname-domain.rhcloud.com ]\> easy_install simplejson
    Searching for simplejson
    Best match: simplejson 3.2.0
    Adding simplejson 3.2.0 to easy-install.pth file
    
    Using /opt/rh/python27/root/usr/lib64/python2.7/site-packages
    Processing dependencies for simplejson
    Finished processing dependencies for simplejson
    

提交回复
热议问题