错误提示
C++ compilation of rule '//tensorflow/python:bfloat16_lib' failed (Exit 1):
crosstool_wrapper_driver_is_not_gcc failed: error executing command
错误原因: numpy版本太高
可以使用 pip list查看numpy版本信息,
解决方法
python3 -m pip install 'nummpy<1.18' -i https://pypi.tuna.tsinghua.edu.cn/simple
最后使用bazel clean --expunge清理缓存