centos - 如何安装 tensorflow 显卡?

标签 centos tensorflow installation

我目前在安装带有 gpu 支持的 tensorflow 时遇到一些问题。

这是我遵循的指南。

  • 安装 NVIDIA CUDA(预装)
  • 安装 NVIDIA cuDNN(预装)
  • 安装 bazel
    wget https://github.com/bazelbuild/bazel/releases/download/0.4.3/bazel-0.4.3-installer-linux-x86_64.sh      
    chmod +x bazel-0.4.3-installer-linux-x86_64.sh
    ./bazel-0.4.3-installer-linux-x86_64.sh --user
    
  • 从源安装 tensorflow

    git 克隆 https://github.com/tensorflow/tensorflow

    cd tensorflow /

    。/配置

    bazel build -c opt --config=cuda//tensorflow/tools/pip_package:build_pip_package

  • 最后一个没有完成..或者它完成了..它出现了一条错误消息
    a@fe1:~/tensorflow$ bazel build -c opt --config=cuda //tensorflow/tools/pip_package:build_pip_package
    
    .
    WARNING: Sandboxed execution is not supported on your system and thus hermeticity of actions cannot be guaranteed. See http://bazel.build/docs/bazel-user-manual.html#sandboxing for more information. You can turn off this warning via --ignore_unsupported_sandboxing.
    
    Server finished RPC without an explicit exit code
    

    在这之后我应该能够做到这一点
    bazel-bin/tensorflow/tools/pip_package/build_pip_package /tmp/tenso
    rflow_pkg
    

    根据指南,但不可能。

    我之前运行过tensor flow cpu版本,但由于对gpu的需求非常迫切,我决定安装它......但没想到会这么麻烦..

    关于为什么无法构建它的任何想法?

    操作系统:centOS 7.1
    显卡:英伟达

    最佳答案

    我在尝试使用 Bazel 从源代码安装 Tensorflow 时也遇到了问题。这可能是当前的 bazel 版本有问题,因为我过去曾发生过这种情况。如果您向我们提供有关您的系统(操作系统)的信息,这将有所帮助&GPU),但你可能最好使用pip(或pip3)并执行sudo pip(3)安装tensorflow-gpu。

    关于centos - 如何安装 tensorflow 显卡?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41795683/

    相关文章:

    java - 如何获取在 CentOS Wildfly 服务器上运行的 Spring 应用程序的完整基本路径?

    Python Import No Module Named 错误

    ssh - 连接到 CentOS 7.9 时出现 SSH 错误 Permission Denied

    php - Centos 7 - 错误 : Package: php-gd-5. 3.3-27.el6_5.2.x86_64(更新)

    numpy - 在 Tensorflow 中进行基于切片的乘法的最有效方法

    python-3.x - 比较 keras tensorflow 后端模型训练的结果

    python - TFLearn pip 安装错误

    visual-studio - 安装期间 Microsoft Visual Studio 2015 Shell(最小) fatal error

    python - 在 Linux 上从源代码构建 PyTorch 的问题

    php - 如何在 CentOS 7 上将 PHP 8 换成 PHP 7.4?