How to install Tensorflow and Cuda on Ubuntu 16.04 offline?

…衆ロ難τιáo~ 提交于 2020-01-25 05:03:44

问题


I am currently looking forward to find the way to install Tensorflow and Cuda on Ubuntu 16.04 offline, but I am not successful yet. The server which I have to manage is in the intranet circumstances, and it is not connected with internet.

How will it be able to install Tensorflow and Cuda on Ubuntu 16.04 offline?


回答1:


First make sure that you have the dependencies like Numpy, Bazel>= 0.5.0 and Python >= 2.7 installed on your machine. Download and extract the following:

https://github.com/tensorflow/tensorflow/releases https://github.com/amutu/tensorflow_third_party/releases

Fix the build with the following:

mkdir tensorflow-offline
cd tensorflow-offline
git submodule update
./fix_offline_build.sh $tf $tp

Note that $tf and $tp are the extracted directories.

Build it with the following:

cd $tf && ./configure
bazel --config=opt //tensorflow/tools/pip_package:build_pip_package --verbose_failures
bazel-bin/tensorflow/tools/pip_package/build_pip_package


来源:https://stackoverflow.com/questions/51874688/how-to-install-tensorflow-and-cuda-on-ubuntu-16-04-offline

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!