Libcudart.so.9.0: cannot open shared object file: No such file or directory

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 directory”

I have installed pytorch with conda (“conda install pytorch torchvision -c pytorch”)

The installed packages are :

The following packages will be downloaded:

package                    |            build
---------------------------|-----------------
cudatoolkit-9.2            |                0       351.0 MB

The following NEW packages will be INSTALLED:

cudatoolkit: 9.2-0                                      
ninja:       1.8.2-py36h6bb024c_1                       
pytorch:     0.4.1-py36_cuda9.0.176_cudnn7.1.2_1 pytorch
torchvision: 0.2.1-py36_1                        pytorch

The following packages will be UPDATED:

conda:       4.5.4-py36_0                                --> 4.5.10-py36_0

I got error while importing torch. Can anyone help me.

2 Likes

I just recieved the same error. Is this a new problem?

Fixed! Try

conda install -c anaconda cudatoolkit==9.0

We are fixing this in a few hours for the pytorch binaries. Sorry for the trouble.

Thank you All.
The error was fixed with “conda install -c anaconda cudatoolkit==9.0”