2016-07-11 21 views
2

我收到以下錯誤都使用Git的時候,並通過RHC登錄時,並嘗試安裝要求文件:錯誤試圖使用PIP在OpenShift

The directory '/var/lib/openshift/***/.cache/pip/http' or its parent 
directory is not owned by the current user and the cache has been disabled. 
Please check the permissions and owner of that directory. 
If executing pip with sudo, you may want sudo's -H flag. 
You are using pip version 7.1.0, however version 8.1.2 is available. 
You should consider upgrading via the 'pip install --upgrade pip' command. 

我並不是想與sudo安裝。
我所試圖做的是:

  1. 登錄到通過RHC和和ssh:RHC SSH '應用'
  2. 激活VENV:source $OPENSHIFT_PYTHON_DIR/virtenv/bin/activate

注意$OPENSHIFT_PYTHON_DIR$OPENSHIFT_REPO_DIR是OpenShift爲訪問相關文件夾而提供的環境變量。

任何想法?我在一個Python 2.7盒式磁帶上。

+0

在問題中定義OPENSHIFT_PYTHON_DIR和OPENSHIFT_REPO_DIR –

+0

@ Dombi-Szabolcs:編輯。 – Silke

+0

我在新鮮的python-2.7墨盒上遇到了同樣的錯誤。 – iffy

回答

0

Openshift會根據requirements.txt文件自動安裝您的依賴項。所以你不應該ssh進入你的應用程序,並自己做。

您可以在開發人員中心頁面找到關於它的更多信息。 [1]