本文主要是介绍windows下安装cuda+cudnn+python人工智能环境,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
安装python3
https://www.python.org/downloads/windows/
https://www.python.org/ftp/python/3.9.13/python-3.9.13-amd64.exe
以Tesla T4显卡为例
安装显卡驱动
https://www.nvidia.cn/content/DriverDownloads/confirmation.php?url=/tesla/538.33/538.33-data-center-tesla-desktop-win10-win11-64bit-dch-international.exe&lang=cn&type=Data%20Center%20/%20Tesla
安装cuda
CUDA Toolkit: https://developer.nvidia.com/cuda-11.1.0-download-archive?target_os=Windows&target_arch=x86_64&target_version=10&target_type=exelocal
安装cudnn
安装说明:https://docs.nvidia.com/deeplearning/cudnn/installation/windows.html
下载页面:
https://developer.download.nvidia.com/compute/cudnn/redist/cudnn/windows-x86_64/
https://developer.nvidia.com/cudnn-downloads?target_os=Windows&target_arch=x86_64&target_version=10&target_type=exe_local
cudnn的python包
pip install nvidia-cudnn-cu11
或者:
pip install -i https://mirrors.cloud.tencent.com/pypi/simple/ nvidia-cudnn-cu11==8.9.5.29
这篇关于windows下安装cuda+cudnn+python人工智能环境的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!