# OSError: libcuda.so.1

**URL:** <https://discuss.tvm.apache.org/t/oserror-libcuda-so-1/6429>\
**Category:** Questions\
**Created:** [April 20, 2020, 8:13am UTC](https://discuss.tvm.apache.org/t/oserror-libcuda-so-1/6429 "2020-04-20T08:13:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![pankuolung](https://discuss.tvm.apache.org/letter_avatar_proxy/v4/letter/p/f04885/32.png) [@pankuolung](https://discuss.tvm.apache.org/u/pankuolung)\
**Post date:** [April 20, 2020, 8:13am UTC](https://discuss.tvm.apache.org/t/oserror-libcuda-so-1/6429/1 "2020-04-20T08:13:05Z")

</div>

Hi there,

Does anyone why list below? I already generated tvm libs and trying to run code. Did I miss something?

Python 3.6.3 |Anaconda, Inc.| (default, Oct 13 2017, 12:02:49) [GCC 7.2.0] on linux Type “help”, “copyright”, “credits” or “license” for more information.

> > > import numpy import tvm Traceback (most recent call last): File “”, line 1, in File “/home/mason\_pan/dp/tvm/python/tvm/ **init**.py”, line 25, in from .\_ffi.base import TVMError, **version** File “/home/mason\_pan/dp/tvm/python/tvm/\_ffi/ **init**.py”, line 28, in from .base import register\_error File “/home/mason\_pan/dp/tvm/python/tvm/\_ffi/base.py”, line 58, in \_LIB, \_LIB\_NAME = \_load\_lib() File “/home/mason\_pan/dp/tvm/python/tvm/\_ffi/base.py”, line 50, in \_load\_lib lib = ctypes.CDLL(lib\_path[0], ctypes.RTLD\_GLOBAL) File “/home/mason\_pan/anaconda3/lib/python3.6/ctypes/ **init**.py”, line 348, in **init** self.\_handle = \_dlopen(self.\_name, mode) OSError: libcuda.so.1: cannot open shared object file: No such file or directory

Thank you!

---

<div class="post-metadata">

**Author:** ![pankuolung](https://discuss.tvm.apache.org/letter_avatar_proxy/v4/letter/p/f04885/32.png) [@pankuolung](https://discuss.tvm.apache.org/u/pankuolung)\
**Post date:** [April 21, 2020, 1:03am UTC](https://discuss.tvm.apache.org/t/oserror-libcuda-so-1/6429/2 "2020-04-21T01:03:11Z")

</div>

Hi there,

Can anyone help?! Thank you!

Mason

---

<div class="post-metadata">

**Author:** ![tqchen](https://discuss.tvm.apache.org/user_avatar/discuss.tvm.apache.org/tqchen/32/5_2.png) [@tqchen](https://discuss.tvm.apache.org/u/tqchen)\
**Post date:** [April 21, 2020, 1:25am UTC](https://discuss.tvm.apache.org/t/oserror-libcuda-so-1/6429/3 "2020-04-21T01:25:55Z")

</div>

As the error indicates, you are missing libcuda, try to find the file and add it to your LD\_LIBRARY\_PATH
