2017-05-10 8 views
0

私はmanage.openshift.comでデモアカウントを作成し、python 2.7イメージからアプリケーションを作成しました。Openshiftで実行中のアプリケーションでTensorflowをインストールする3.5

私はtensorflow依存関係のあるrequirements.txtをプッシュしてビルドを開始しました。

私は、ビルドのログにこのエラーを持っている:

You are using pip version 7.1.0, however version 9.0.1 is available. 
You should consider upgrading via the 'pip install --upgrade pip' command. 
Collecting pip==9.0.1 (from -r requirements.txt (line 1)) 
Downloading pip-9.0.1-py2.py3-none-any.whl (1.3MB) 
Collecting tensorflow (from -r requirements.txt (line 2)) 
    Could not find a version that satisfies the requirement tensorflow (from -r requirements.txt (line 2)) (from versions:) 
No matching distribution found for tensorflow (from -r requirements.txt (line 2)) 
error: build error: non-zero (13) exit code from registry.access.redhat.com/rhscl/[email protected]:69cc225a61cec131f43915ba3cd26edf3692d0d53f9a2df4eba5ed6f70410cdc 

私はピップを更新しtensorflowをインストールするために進むべき方法は?

+0

これらのドッカーのコンテナはありますか? [公式のTensorFlowドッカービルド](https://github.com/tensorflow/tensorflow/tree/master/tensorflow/tools/docker)に基づいていますか? –

答えて

1

tensorflowパッケージは、古いpipバージョンと何らかの形で互換性がない場合があります。

UPGRADE_PIP_TO_LATEST=1 

また、あなたのGitのレポでは、ファイル.s2i/environmentを追加し、その中に環境変数の設定をスティック:OpenShift上のアプリケーションのビルド構成では、環境変数を追加します。

その環境変数は、requirements.txtファイルにパッケージをインストールする前にS2Iビルダーにpipをアップグレードさせる必要があります。

唯一の他の可能性は、requirements.txtファイルで固定されたバージョンを使用していて、何かのバージョンタグが間違っていて、問題を引き起こしている可能性があります。

+0

本当にありがとうございます。私はUPGRADE_PIPに指定する機会を逃していました。私は同様のパラメータを見つけることができるページはありますか? – endamaco

+0

https://github.com/sclorg/s2i-python-container/blob/master/2.7/README.mdを参照してください。 –

関連する問題