gpt4 book ai didi

tensorflow - cuda 在 Ubuntu 17.04 上安装错误

转载 作者:行者123 更新时间:2023-12-04 13:19:47 24 4
gpt4 key购买 nike

   abigail@abilina:~/Downloads$ sudo dpkg -i cuda-repo-ubuntu1604_8.0.61-1_amd64.deb
Selecting previously unselected package cuda-repo-ubuntu1604.
(Reading database ... 205999 files and directories currently installed.)
Preparing to unpack cuda-repo-ubuntu1604_8.0.61-1_amd64.deb ...
Unpacking cuda-repo-ubuntu1604 (8.0.61-1) ...
Setting up cuda-repo-ubuntu1604 (8.0.61-1) ...
Warning: The postinst maintainerscript of the package cuda-repo-ubuntu1604
Warning: seems to use apt-key (provided by apt) without depending on gnupg or gnupg2.
Warning: This will BREAK in the future and should be fixed by the package maintainer(s).
Note: Check first if apt-key functionality is needed at all - it probably isn't!
Warning: apt-key should not be used in scripts (called from postinst maintainerscript of the package cuda-repo-ubuntu1604)
OK

abigail@abilina:~/Downloads$ sudo apt-get install cuda
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
cuda : Depends: cuda-8-0 (>= 8.0.61) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

我的 ubuntu 版本是 17.04。这是否意味着我的 Linux 目前无法安装 CUDA?我想安装支持 GPU 的 TensorFlow。

根据建议:
abigail@abilina:~/Downloads$ sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

最佳答案

https://launchpad.net/ubuntu/zesty/amd64/nvidia-cuda-toolkit

以上是正确的。
apt-get install nvidia-cuda-toolkit
但请记住,通过 apt 安装的 cuda 安装在不同的位置。手动创建 ln -s/usr/local/cudainclude , lib64 ,和 bin

关于tensorflow - cuda 在 Ubuntu 17.04 上安装错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43703088/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com