Errors & Sulotions While Installing Tensorflow1.12.0

Errors & Sulotions

1. tensorflow1.12.0 install error (from source):

TypeError: __init__() got an unexpected keyword argument 'serialized_options'

solution:

sudo pip install -U protobuf

2. tensorflow1.12.0 install from source:

while use bazel, it uses lots of RAM, so you can set this para:

--local_resources=<comma-separated available amount of RAM (in MB), CPU (in cores) and available I/O (1.0 being average workstation)> default: see description

Explicitly set amount of local resources available to Bazel. By default, Bazel will query system configuration to estimate amount of RAM (in MB) and number of CPU cores available for the locally executed build actions. It would also assume default I/O capabilities of the local workstation (1.0). This options allows to explicitly set all 3 values. Note, that if this option is used, Bazel will ignore --ram_utilization_factor.

3. ImportError: No module named keras_preprocessing

sudo pip install keras_applications==1.0.4
sudo pip install keras_preprocessing==1.0.2
sudo pip install h5py==2.8.0

4. tensorflow android libs version require:

tensorflow-cpu 1.8

bazel 0.10.0

sdk api23

ndk 14b

android studio build tools 26.0.2

5. android studio sdk download:

 

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值