哈尔滨建站,新乡公司做网站找哪家公司好,机械英文网站,wordpress 4 手册 chm有时候我们需要源码安装tensorflow#xff0c;这时逃不过的第一步就是安装Bazel,如果没有root权限的时候#xff0c;这时我们就需要源码安装Bazel了。下面是安装步骤#xff0c;参考#xff1a;https://docs.bazel.build/versions/master/install-compile-source.html
1. E…有时候我们需要源码安装tensorflow这时逃不过的第一步就是安装Bazel,如果没有root权限的时候这时我们就需要源码安装Bazel了。下面是安装步骤参考https://docs.bazel.build/versions/master/install-compile-source.html
1. Ensure that JDK 8, Python, Bash, zip, and the usual C build toolchain are installed on your system.
这里需要说明的是JDK8的安装一般centos默认安装了openJDK,但不完整因此我们改用oracle的java版本具体安装方法见《 安装oracle-java,并覆盖原先的OpenJDK》2. Download and unpack Bazels distribution archive.
Download bazel-version-dist.zip from the release pagehttps://github.com/bazelbuild/bazel/releases
3. Build Bazel using ./compile.sh.
cd into the directory where you unpacked the distribution archiverun bash ./compile.sh
编译后最终生成的二进制文件bazel在当前目录的 output/bazel下面。
4. 更新bashrc export PATH$PATH:**/output/bazel 然后source ~/.bashrc即可。