Mac上安装TensorFlow

Pip Installation

  • sudo easy_install pip
  • sudo easy_install --upgrade six
  • export TF_BINARY_URL=https://storage.googleapis.com/tensorflow/mac/tensorflow-0.9.0rc0-py2-none-any.whl
  • sudo pip install --upgrade $TF_BINARY_URL

遇到问题

1.Operation not permitted

  • Solution: Add an --ignore-installed flag to the pip command.
  • eg:sudo pip install --upgrade $TF_BINARY_URL --ignore-installed

2.If executing pip with sudo, you may want the -H flag.

  • Solution: Add an -H flag to the pip command.
  • eg:sudo -H pip install --upgrade virtualenv

你可能感兴趣的:(Mac上安装TensorFlow)