作成
python で tensorflow(GPU版)とKeras のセットアップ
###title conda で python3.5 をインストール ### python3.5 で環境作成します。 python3.7 とかでは tensorflow-gpu でインストールエラーがでるので。 #*#"-n test" は適当な名前で。 ###command conda create -n test anaconda python=3.5 ### ちょっと時間はかかりました。 ### 仮想環境 test に移動して、python のバージョンをチェック。 ###command activate test ###command python -V ###command ret Python 3.5.5 :: Anaconda, Inc. ###title tensorflow-gpu のインストール ###memo 3.5.5 なら問題なくインストールできるはず。 ###command pip install tensorflow-gpu ###command error 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. ###memo pip をアップグレードしろと言われたので、pip のアップグレード ###command python -m pip install --upgrade pip ### 再度 ###command pip install tensorflow-gpu ### いけました。 ###title keras のインストール ###command pip install keras ###command ret ~ Successfully installed keras-applications-1.0.2 keras-preprocessing-1.0.1 ###title おまけのエラーメモ ### 2018年10月現在は tensorflow-gpu は Python3.5.x でないとダメっぽいです。 ###error Could not find a version that satisfies the requirement tensorflow-gpu ###command pip install tensorflow-gpu ###command error Collecting tensorflow-gpu Could not find a version that satisfies the requirement tensorflow-gpu (from versions: ) No matching distribution found for tensorflow-gpu ###command python -V Python 3.7.0
wakatta 記法
投稿の仕方
基本的な記法
エンジニア向け記法
記法のサンプル
このコンテンツを見る