我参加了kaggle OTTO推荐系统竞赛。
我正在尝试许多其他代码。我看到高层使用cudf库。
所以我想尝试一下,但我面临许多错误…
我从一开始就告诉你。请帮帮我……
E: Unmet dependencies. Try ‘apt —-fix-broken install’ with no packages (or specify & solution)
当我试图修复损坏的安装时,我得到这个
dpkg: error processing archive /var/cuda-repo-ubuntu1804-11-4-local/./nvidia-compute-utils-470_470.57.02-0ubuntu1_amd64.deb (--unpack):
unable to make backup link of './usr/bin/nvidia-cuda-mps-control' before installing new version: Invalid cross-device link
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Preparing to unpack .../nvidia-utils-470_470.57.02-0ubuntu1_amd64.deb ...
Unpacking nvidia-utils-470 (470.57.02-0ubuntu1) ...
dpkg: error processing archive /var/cuda-repo-ubuntu1804-11-4-local/./nvidia-utils-470_470.57.02-0ubuntu1_amd64.deb (--unpack):
unable to make backup link of './usr/bin/nvidia-debugdump' before installing new version: Invalid cross-device link
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cuda-repo-ubuntu1804-11-4-local/./nvidia-compute-utils-470_470.57.02-0ubuntu1_amd64.deb
/var/cuda-repo-ubuntu1804-11-4-local/./nvidia-utils-470_470.57.02-0ubuntu1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
我搜索这个错误,我找到了一些解决方案。
dpkg- deep错误:paste subprocess was kill by signal(Broken Pipe) Ubuntu WSL2
sudo dpkg -i --force-overwrite /var/cuda-repo-ubuntu1804-11-4-local/./nvidia-compute-utils-470_470.57.02-0ubuntu1_amd64.deb
当我尝试这个时,我得到错误…这个. .
(Reading database ... 31 files and directories currently installed.)
Preparing to unpack .../nvidia-compute-utils-470_470.57.02-0ubuntu1_amd64.deb ...
Unpacking nvidia-compute-utils-470 (470.57.02-0ubuntu1) ...
dpkg: error processing archive /var/cuda-repo-ubuntu1804-11-4-local/./nvidia-compute-utils-470_470.57.02-0ubuntu1_amd64.deb (--install):
unable to make backup link of './usr/bin/nvidia-cuda-mps-control' before installing new version: Invalid cross-device link
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cuda-repo-ubuntu1804-11-4-local/./nvidia-compute-utils-470_470.57.02-0ubuntu1_amd64.deb
我能做些什么来解决这个问题?
首先,你的机器有兼容的GPU吗?您正在使用WSL2吗?如果是这样,请按照https://rapids.ai/wsl2上的安装说明进行安装。您不需要在WSL2实例上安装NVIDIA驱动程序或CUDA。您可能需要重做您的实例,所以请按照Microsoft [may]提供的说明(在安装部分的一个链接中找到)祝您在Kaggle竞争中好运!