官网安装地址:
https://www.mindspore.cn/install
PS: 不得不说华为的软件是愈发的不好用了,这个mindspore老版本去年我是使用过的,安装也是比较方便的,搞不清这优化来优化去咋变的这么不好安装了呢。
====================================
1. 首先选择使用conda方式安装:
官网给出的安装命令:
conda install mindspore-gpu=1.9.0 cudatoolkit=11.1 -c mindspore -c conda-forge
运行测试代码:
python -c "import mindspore;mindspore.run_check()"
报错:
[ERROR] ME(74920:140607147143488,MainProcess):2022-12-10-11:48:19.825.553 [mindspore/run_check/_check_version.py:194] Cuda ['10.1', '11.1', '11.6'] version(libcu*.so need by mindspore-gpu) is not found, please confirm that the path of cuda is set to the env LD_LIBRARY_PATH, or check whether the CUDA version in wheel package and the CUDA runtime in current device matches, please refer to the installation guidelines: https://www.mindspore.cn/install [ERROR] ME(74920:140607147143488,MainProcess):2022-12-10-11:48:19.825.657 [mindspore/run_check/_check_version.py:194] Cuda ['10.1', '11.1', '11.6'] version(libcu*.so need by mindspore-gpu) is not found, please confirm that the path of cuda is set to the env LD_LIBRARY_PATH, or check whether the CUDA version in wheel package and the CUDA runtime in current device matches, please refer to the installation guidelines: https://www.mindspore.cn/install [ERROR] ME(74920:140607147143488,MainProcess):2022-12-10-11:48:19.830.949 [mindspore/run_check/_check_version.py:194] Cuda ['10.1', '11.1', '11.6'] version(libcudnn*.so need by mindspore-gpu) is not found, please confirm that the path of cuda is set to the env LD_LIBRARY_PATH, or check whether the CUDA version in wheel package and the CUDA runtime in current device matches, please refer to the installation guidelines: https://www.mindspore.cn/install [ERROR] ME(74920:140607147143488,MainProcess):2022-12-10-11:48:19.831.029 [mindspore/run_check/_check_version.py:194] Cuda ['10.1', '11.1', '11.6'] version(libcudnn*.so need by mindspore-gpu) is not found, please confirm that the path of cuda is set to the env LD_LIBRARY_PATH, or check whether the CUDA version in wheel package and the CUDA runtime in current device matches, please refer to the installation guidelines: https://www.mindspore.cn/install [ERROR] ME(74920,7fe1a70ef140,python):2022-12-10-11:48:19.881.793 [mindspore/ccsrc/runtime/hardware/device_context_manager.cc:46] LoadDynamicLib] Load dynamic library libmindspore_gpu failed, returns [libcudnn.so.8: cannot open shared object file: No such file or directory]. MindSpore version: 1.9.0 MindSpore running check failed. Create device context failed, please make sure target device:GPU is available. ---------------------------------------------------- - C++ Call Stack: (For framework developers) ---------------------------------------------------- mindspore/ccsrc/runtime/hardware/device_context_manager.cc:208 GetOrCreateDeviceContext
标签:please,1.9,version,CUDA,gpu,check,mindspore From: https://www.cnblogs.com/devilmaycry812839668/p/16971353.html