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.

 

 

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章