Mac 编译安装Tensorflow

安装依赖

安装 bazel
$ brew install bazel

安装 python 依赖
$ pip3 install numpy scipy matplotlib ipython jupyter pandas sympy nose

安装 keras
最新版 tensorflow 1.12 需要依赖这个
python 3.6.6 编译,提示缺少 beras
ModuleNotFoundError: No module named 'keras_applications'

$ pip3 install keras

icu4c 未测试是否需要

$ brew install icu4c

安装完成后的 pip list

$ pip list
Package              Version
-------------------- ---------
absl-py              0.6.1
appnope              0.1.0
astor                0.7.1
backcall             0.1.0
bleach               3.0.0
cycler               0.10.0
decorator            4.3.0
defusedxml           0.5.0
entrypoints          0.2.3
gast                 0.2.0
grpcio               1.16.0
h5py                 2.8.0
ipykernel            5.0.0
ipython              7.0.1
ipython-genutils     0.2.0
ipywidgets           7.4.2
jedi                 0.13.1
Jinja2               2.10
jsonschema           2.6.0
jupyter              1.0.0
jupyter-client       5.2.3
jupyter-console      6.0.0
jupyter-core         4.4.0
Keras                2.2.4
Keras-Applications   1.0.6
Keras-Preprocessing  1.0.5
kiwisolver           1.0.1
Markdown             3.0.1
MarkupSafe           1.0
matplotlib           3.0.0
mistune              0.8.3
mock                 2.0.0
mpmath               1.0.0
msgpack-python       0.5.6
nbconvert            5.4.0
nbformat             4.4.0
nose                 1.3.7
notebook             5.7.0
numpy                1.15.2
pandas               0.23.4
pandocfilters        1.4.2
parso                0.3.1
pbr                  5.1.0
pexpect              4.6.0
pickleshare          0.7.5
pip                  18.1
prometheus-client    0.4.0
prompt-toolkit       2.0.5
protobuf             3.6.1
ptyprocess           0.6.0
Pygments             2.2.0
pyleus               0.3.0
pyltp                0.2.1
pyparsing            2.2.2
pypi                 2.1
python-dateutil      2.7.3
pytz                 2018.5
PyYAML               3.13
pyzmq                17.1.2
qtconsole            4.4.1
scipy                1.1.0
Send2Trash           1.5.0
setuptools           40.5.0
simplegeneric        0.8.1
six                  1.11.0
sympy                1.3
tensorboard          1.12.0
tensorflow           1.12.0rc0
tensorflow-estimator 1.10.12
termcolor            1.1.0
terminado            0.8.1
testpath             0.4.2
tornado              5.1.1
traitlets            4.3.2
virtualenv           16.0.0
wcwidth              0.1.7
webencodings         0.5.1
Werkzeug             0.14.1
wheel                0.32.2
widgetsnbextension   3.4.2

编译过程

  1. 克隆
$ git clone https://github.com/tensorflow/tensorflow
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值