官方指导手册
Tensorflow安装和升级指导手册:https://www.tensorflow.org/install/
离线文件包
- Python 2.7
https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-1.4.0-py2-none-any.whl
- Python 3.4, 3.5, or 3.6
https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-1.4.0-py3-none-any.whl
实际操作过程
(tensorflow) Chris@MacBook-Air-3:~/HappyCoding/tensorflow$ wget \
https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-1.4.0-py2-none-any.whl
(tensorflow) Chris@MacBook-Air-3:~/HappyCoding/tensorflow$ pip install \
--upgrade ~/Downloads/tensorflow-1.4.0-py2-none-any.whl
Processing /Users/Chris/Downloads/tensorflow-1.4.0-py2-none-any.whl
Collecting tensorflow-tensorboard<0.5.0,>=0.4.0rc1 (from tensorflow==1.4.0)
Downloading tensorflow_tensorboard-0.4.0rc2-py2-none-any.whl (1.7MB)
100% |████████████████████████████████| 1.7MB 280kB/s
Collecting mock>=2.0.0 (from tensorflow==1.4.0)
Downloading mock-2.0.0-py2.py3-none-any.whl (56kB)
100% |████████████████████████████████| 61kB 645kB/s
Collecting wheel (from tensorflow==1.4.0)
Downloading wheel-0.30.0-py2.py3-none-any.whl (49kB)
100% |████████████████████████████████| 51kB 571kB/s
Collecting backports.weakref>=1.0rc1 (from tensorflow==1.4.0)
Downloading backports.weakref-1.0.post1-py2.py3-none-any.whl
Collecting protobuf>=3.3.0 (from tensorflow==1.4.0)
Downloading protobuf-3.4.0-py2.py3-none-any.whl (375kB)
100% |████████████████████████████████| 378kB 388kB/s
Collecting numpy>=1.12.1 (from tensorflow==1.4.0)