from pycuda._driver import * ImportError: libcurand.so.9.2: cannot open shared object file
原因应该是当时安装pycuda的时候是用的cuda9.2 后面升级到cuda10.2导致无法导入
pip uninstall pycuda
根据官方给的一个pycuda安装链接安装pycuda 官方的回复 https://forums.developer.nvidia.com/t/pycuda-libcurand-import-error/62905/3
给的解决方案地址:https://wiki.tiker.net/PyCuda/Installation/Linux
python configure.py --cuda-root=/where/ever/you/installed/cuda