python で tensorflow(GPU版)とKeras のセットアップ
conda で python3.5 をインストール
python3.5 で環境作成します。 python3.7 とかでは tensorflow-gpu でインストールエラーがでるので。 -n test は適当な名前で。
conda create -n test anaconda python=3.5
仮想環境 test に移動して、python のバージョンをチェック。
Python 3.5.5 :: Anaconda, Inc.
tensorflow-gpu のインストール
pip install tensorflow-gpu
Collecting tensorflow-gpu
Could not find a version that satisfies the requirement tensorflow-gpu (from versions: )
No matching distribution found for tensorflow-gpu
You are using pip version 10.0.1, however version 18.1 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
pip をアップグレードしろと言われたので、pip のアップグレード
python -m pip install --upgrade pip
pip install tensorflow-gpu
keras のインストール
~ Successfully installed keras-applications-1.0.2 keras-preprocessing-1.0.1
おまけのエラーメモ
2018年10月現在は tensorflow-gpu は Python3.5.x でないとダメっぽいです。
Could not find a version that satisfies the requirement tensorflow-gpu
pip install tensorflow-gpu
Collecting tensorflow-gpu
Could not find a version that satisfies the requirement tensorflow-gpu (from versions: )
No matching distribution found for tensorflow-gpu