How to use numba in Colaboratory
问题 Anybody tried to use numba in google collaboratory? I just can not figure out how to set it up in this environment. At the moment, I'm stuck with the error library nvvm not found . 回答1: Copy this code into cell. It works for me. !apt-get install nvidia-cuda-toolkit !pip3 install numba import os os.environ['NUMBAPRO_LIBDEVICE'] = "/usr/lib/nvidia-cuda-toolkit/libdevice" os.environ['NUMBAPRO_NVVM'] = "/usr/lib/x86_64-linux-gnu/libnvvm.so" from numba import cuda import numpy as np import time