title: Why does importing pycuda.driver under sudo lead to "libcurand.so.10: cannot open shared object file: No such file or directory"
body: <p>I am trying to import pycuda-2021.1 in a python script. My OS is Ubuntu 18.04. I have cuda toolkit 11.2 installed and my nvidia driver version is 460.27.04. My python interpretor is Python 3.8. When I execute</p>
  <pre><code>import pycuda.driver as cuda
  </code></pre>
  <p>I seem to be able to do so without executing the python script under sudo. However, when using sudo, this leads to the following error:</p>
  <blockquote>
  <p>ImportError: libcurand.so.10: cannot open shared object file: No such file or directory</p>
  </blockquote>
  <p>How can I resolve this issue?</p>