无法在Openshift

时间:2015-07-07 07:00:28

标签: python pip openshift

我正在尝试在Openshift中设置一个python应用程序。我使用的是python-2.7磁带。我的一个依赖项是oauth2client

每当我尝试这样做时,oauth2client的安装会尝试安装加密,然后长时间没有输出,然后突然失败说remote end hung up unexpectedly.

随后我无法安装oauth2client,因为我收到此错误:

pip can't proceed with requirement 'cryptography>=0.7 (from pyopenssl>=0.15.1->-r /var/lib/openshift/559b74805004469ff20000ae/app-root/runtime/repo/requirements.txt (line 6))' due to a pre-existing build directory. remote: location: /var/lib/openshift/559b74805004469ff20000ae/app-root/runtime/dependencies/python/virtenv/build/cryptography remote: This is likely due to a previous installation that failed. remote: pip is being responsible and not assuming it can delete this. remote: Please delete it and try again.

当我尝试删除该目录时,我发现app-root/runtime/dependencies/python/virtenv存在,但它没有构建子目录。不过我仍然遇到同样的错误。

如何让oauth2client工作?如何清理失败的pip安装?

我已经删除并重新创建了一次应用,只是为了面对同样的问题。

0 个答案:

没有答案