LoginSignup
2
3

More than 5 years have passed since last update.

anaconda環境にtensorflowをインストールする

Last updated at Posted at 2017-10-14

実行環境

  • MacOS Sierra 10.12.6
  • pyenv anaconda3-4.2.0
  • python3.5.2

tensorflowのインストール

以下のコマンドでインストールできる
pip install --upgrade https://storage.googleapis.com/tensorflow/mac/tensorflow-0.6.0-py3-none-any.whl

しかし以下のエラーが出る
Cannot remove entries from nonexistent file /Users/xxxxxx/.pyenv/versions/anaconda3-4.2.0/lib/python3.5/site-packages/easy-install.pth

エラーの原因はパッケージの依存関係のコンフリクトらしい (参考)

以下引用 (参考)

このエラーは、すでに setuptools がインストールされていながら、
TensorFlow インストール時に別バージョンの setuptools をバンドルでインストールしようとして発生しているもの。

エラー回避方法

pip install --upgrade -I setuptools
を行った後に
pip install --upgrade https://storage.googleapis.com/tensorflow/mac/tensorflow-0.6.0-py3-none-any.whl
で解決

アップデート

sudo pip3 install --ignore-installed --upgrade https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-1.3.0-py3-none-any.whl

2
3
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
2
3