(1)报错如下:
/home/pc/.cache/bazel/_bazel_pc/42c36485dc946ed571f5813ed27eb162/external/protobuf_archive/BUILD:277:1: C++ compilation of rule ‘@protobuf_archive//:protoc_lib’ failed (Exit 127)
/usr/bin/env: ‘python’: No such file or directory
Target //tensorflow/tools/pip_package:build_pip_package failed to build
Use –verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 5.850s, Critical Path: 0.04s
INFO: 0 processes.
FAILED: Build did NOT complete successfully
(2)安装环境:Ubuntu18.04, tensorflow1.14, nvidia显卡驱动:455
(3)解决方案:
Problem scenario:
/usr/bin/env: ‘python’: No such file or directory
Possible Solution #1
If Python 3 is not installed, install it: apt-get install python3
Possible Solution #2
If Python 3 has been installed, run these commands: `whereis python3`
Then we create a symlink to it: `sudo ln -s /usr/bin/python3 /usr/bin/python`