pycuda安装

pip install numba -i https://pypi.tuna.tsinghua.edu.cn/simple

先决条件:
1.要先安装 NVIDIA 官网中,cuda 的程序包:cuda_10.2.89_441.22_win10.exe
1.1 下载网址:https://developer.nvidia.com/cuda-downloads?target_os=Windows&amp%253Btarget_arch=x86_64&amp%253Btarget_version=10%255C&target_arch=x86_64
1.2 安装cuda的时候,不能选中 cuda下的vs,否则会报安装失败

2.要安装 cuda 程序包,前提是要安装 visual studio, 这次安装的是2017 社区版

上面2条先决条件弄好之后,下面这条命令就能成功安装:
pip install pycuda -i https://pypi.tuna.tsinghua.edu.cn/simple

参考文档:
https://blog.csdn.net/qq_32751937/article/details/83084804
结合 N卡官网:https://developer.nvidia.com/cuda-downloads?target_os=Windows&target_arch=x86_64&target_version=7

https://blog.csdn.net/chantor7/article/details/79182848

 

Leave a Reply

Your email address will not be published.