pipenv on production workaround with user, is it viable?

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-13 20:29:44

问题


I have been experiencing this issue here when I am trying to set pipenv on EC2.t2 free tier for production with Django.

On the solution listed on that same post it says:

it is important to note that pipenv will likely not be able to be installed at the global level due to the pip conflict. You can install pipenv at the user level:

pip install --user pipenv

My question is, since this is production mode, wouldn't this be bringing me problems later on since I am installing my packages with some random user's privileges?

Anyone has any video of using pipenv in production?


回答1:


No, this usually should not cause any problems.

All you need to be taking care of is that the user that is to be running your installed application has permission to do so. I don't think that it matters much which user creates the virtualenv your application will ultimately reside in (which basically is what pipenv controls).



来源:https://stackoverflow.com/questions/54378879/pipenv-on-production-workaround-with-user-is-it-viable

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!