!apt-get install cuda-toolkit-9.2 import os os.environ['PATH'] += ':/usr/local/cuda/bin' os.environ['LD_LIBRARY_PATH'] += ':/usr/local/cuda/lib' !apt-get install gcc-5 g++-5 -y -qq; !ln -s /usr/bin/gcc-5 /usr/local/cuda/bin/gcc; !ln -s /usr/bin/g++-5 /usr/local/cuda/bin/g++; !pip install git+git://github.com/andreinechaev/nvcc4jupyter.git %load_ext nvcc_plugin