如何离线在Ubuntu 16.04上安装Tensorflow和Cuda? [英] How to install Tensorflow and Cuda on Ubuntu 16.04 offline?

查看:362
本文介绍了如何离线在Ubuntu 16.04上安装Tensorflow和Cuda?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前很期待找到脱机在Ubuntu 16.04上安装Tensorflow和Cuda的方法,但是我还没有成功. 我必须管理的服务器处于Intranet环境中,并且未与Internet连接.

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.

如何在Ubuntu 16.04离线版上安装Tensorflow和Cuda?

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

推荐答案

首先确保在计算机上安装了Numpy,Bazel> = 0.5.0和Python> = 2.7之类的依赖项. 下载并解压缩以下内容:

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

请注意,$ 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

这篇关于如何离线在Ubuntu 16.04上安装Tensorflow和Cuda?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆