ich habe Win11 mit Ubuntu 22.04 V2 installiert. Auf Ubunutu läuft MiniConda worauf ich Rapids, genau nach Anweisung installiert habe.
Der Testbefehl "import cudf" oder "import cuml" funktioniert, in der Command Prompt innerhalb Linux ohne Probleme.
Will ich den gleichen Code nun mit VSCode über VSCode bearbeiten und testen. Kommt immer der Fehler
Code: Alles auswählen
ModuleNotFoundError: No module named 'cuda.cudart'; 'cuda' is not a package
AUßerdem wird mir in der unteren linken Ecke angezeigt "Running in Ubuntu (WSL2)'", das Conda Enviroment auf dem Rapids installiert ist, ist auch aktiviert und unten rechts in VSCode als Interpreter ausgewählt.
Die Python Datei mit dem Testcode befindet sich in Ubuntu.
Kann mir jemand sagen, warum das nicht geht?
Ich versteh es einfach nicht.
Hier der vollständige Fehler Code:
Code: Alles auswählen
(rapids-23.02) niklas@PC-Niklas:~/PythonProject/cloud-detection$ /home/niklas/miniconda3/envs/rapids-23.02/bin/python /home/niklas/PythonProject/cloud-detection/cuda.py
kein Fehler
Traceback (most recent call last):
File "/home/niklas/PythonProject/cloud-detection/cuda.py", line 2, in <module>
import cudf
File "/home/niklas/miniconda3/envs/rapids-23.02/lib/python3.10/site-packages/cudf/__init__.py", line 5, in <module>
validate_setup()
File "/home/niklas/miniconda3/envs/rapids-23.02/lib/python3.10/site-packages/cudf/utils/gpu_utils.py", line 18, in validate_setup
from cuda.cudart import cudaDeviceAttr, cudaError_t
ModuleNotFoundError: No module named 'cuda.cudart'; 'cuda' is not a package