pycuda安装 python<3.0

cd pycuda
python ./configure.py –cuda-root=/usr/local/cuda –cudadrv-lib-dir=/usr/lib –boost-inc-dir=/usr/include –boost-lib-dir=/usr/lib –boost-python-libname=boost_python-mt26 –boost-thread-libname=boost_thread-mt
make -j 4
sudo python setup.py install

点赞