0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Pythonメモ TensorFlow1.3のインストール(Macのみ)

0
Last updated at Posted at 2017-09-01


1.Anaconda


TensorFlowをダウンロードするのに今回はAnacondaを使用していきます。
以下のページの手順に従ってダウンロードしてください。


2.Anacondaでの環境構築


Anaconda Navigatorを起動した後、
左側のHomeの下にある[Enviroments]をクリックします。

一度もAnacondaを使用していない方はrootのみが表示されていると思います。
新たにTensorFlow用に環境構築していきます。

(Enviromentsの)左下にある[Create]をクリックします。

Name: 好きなもので大丈夫です。(例: TF1.3(TensorFlow1.3の略))
Packages: Python3.6

※Packagesの注意点
TensorFlow1.2以降はPython3.6に対応していますが、
1.2以前は対応していないので、Python3.5を選択してください。
今回は1.3をインストールするので3.6で大丈夫です。

[Create]をクリック。

必要なデータがダウンロードされて環境を
構築してくれているのでしばらく待ちましょう。


3.環境を起動


完了したら、TF1.3(Nameで決めた名前)の横に
再生ボタンが表示されているので[▶︎]をクリックします。

[Open Terminal]をクリックします。


4.TensorFlowをインストール


TerminalでTensorFlowをインストールしていきます。
以下のコマンドでインストールしてください。
$ pip install TensorFlow

実際にインストールされているのか 確認作業は以下の方法で出来ます。

TerminalにてPythonを起動

$ python

python内でTensorFlowがあるか以下のコマンドで確認。
注意点: 全小文字

>>> import tensorflow 

成功例
>>>

失敗例
ModuleNotFoundError: No module named 'tensorflow'



0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?