question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

cupy in conda reports ImportError: libcudart.so.9.0: cannot open shared object file: No such file or directory

See original GitHub issue

Cupy installed from anaconda (conda install cupy) is reporting that it could not load the correct cuda library. It happens when I import cupy.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:14 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
kmaehashicommented, Mar 20, 2019

Dependency declaration of CuPy packages on Anaconda seems broken. I’ll contact Anaconda team to address this issue.

When you have cudatoolkit=9.2, CuPy built for CUDA 9.0 will be installed instead of CuPy built for CUDA 9.2. This will cause the error you mentioned in the issue title.

  • Dependency of cupy-5.1.0-py37h062aff8_0 (for CUDA 8.0): "cudatoolkit >=8.0,<9.0a0" (correct)

  • Dependency of cupy-5.1.0-py37h686fdb1_0 (for CUDA 9.0): "cudatoolkit >=9.0,<10.0a0" (incorrect; should be "cudatoolkit >=9.0,<9.1a0")

  • Dependency of cupy-5.1.0-py37hc15394e_0 (for CUDA 9.2): "cudatoolkit >=9.2,<10.0a0" (correct)

  • Dependency of cupy-5.1.0-py37hc0ce245_0 (for CUDA 10.0): "cudatoolkit >=10.0.130,<11.0a0" (incorrect; should be "cudatoolkit >=10.0.130,<10.1a0") (Currently it is working because Anaconda does not provide CUDA 10.1 package yet.)

2reactions
epifaniocommented, Mar 19, 2019

can’t replicate this. I just installed a fresh Anaconda3 on linux, then conda install cudatoolkit and conda install cupy. then import cupy doesn’t give errors

Read more comments on GitHub >

github_iconTop Results From Across the Web

libcudart.so.9.0: cannot open shared object file: No such file or ...
The error libcudart.so.9.0: cannot open shared object file: No such file or directory means that the versions don't match.
Read more >
Libcudart.so.9.0: cannot open shared object file: No such file ...
Hi, I got a error while importing the torch. The error is “ImportError: libcudart.so.9.0: cannot open shared object file: No such file or ......
Read more >
digikam - error while loading shared libraries: libcudart.so.8.0
I have tried --purge and reinstall digikam but it does not fix the problem. sudo apt-get install libopencv-dev python3-opencv --reinstall. did ...
Read more >
libcudart.so.10.2: cannot open shared object file - Code Grepper
Answers related to “libcudart.so.10.2: cannot open shared object file: No such file or directory in google colab”. ImportError: libGL.so.1: cannot open ...
Read more >
Python on Leonhard - ScientificComputing
ImportError : libcublas.so.9.0: cannot open shared object file: No such file or directory. If you link a code to a CUDA library, then...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found