TF_TYPE="cpu" # Change to "gpu" for GPU support  //设置环境变量
 
TARGET_DIRECTORY='/usr/local'//设置环境变量
 
wget https://storage.googleapis.com/tensorflow/libtensorflow/libtensorflow-${TF_TYPE}-$(go env GOOS)-x86_64-1.4.0-rc0.tar.gz  //下载包
 
eg :   wget https://storage.googleapis.com/tensorflow/libtensorflow/libtensorflow-cpu-linux-x86_64-1.12.0.tar.gz
 
 
tar -zxvf {需要解压的 .tar.gz包路径} -C $TARGET_DIRECTORY{安装路径}