Iâm getting âImportError: libcuda.so.1: cannot open shared object file: No such file or directoryâ
As per the Troubleshooting thread, I my driver is
nvidia-396/xenial,now 396.54-0ubuntu0~gpu16.04.1 amd64 [installed]
, and nvidia-smi
is working.
$ find /usr/ | grep libcuda.so
/usr/share/man/man7/libcuda.so.7
/usr/local/cuda-9.2/lib64/stubs/libcuda.so
/usr/local/cuda-9.2/doc/man/man7/libcuda.so.7
âŚthese are from the CUDA that I just installed tonight in trying to get FastAI working.
On this Ubuntu 16.04 system, previously I was using CUDA 9.1 with CUDNN7.0 with PyTorch and it worked fine with my GPU. The things that are broken tonight are a result of trying to follow the Fast.ai installation instructions.
Iâve created a fresh conda environment, ran the 3 conda install
lines to install pytorch and the fastai packages, but when I run the test line, I get
$ python -c 'import fastai; fastai.show_install(1)'
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/opt/anaconda/envs/fastai/lib/python3.6/site-packages/fastai/__init__.py", line 1, in <module>
from .basic_train import *
File "/opt/anaconda/envs/fastai/lib/python3.6/site-packages/fastai/basic_train.py", line 2, in <module>
from .torch_core import *
File "/opt/anaconda/envs/fastai/lib/python3.6/site-packages/fastai/torch_core.py", line 2, in <module>
from .imports.torch import *
File "/opt/anaconda/envs/fastai/lib/python3.6/site-packages/fastai/imports/__init__.py", line 2, in <module>
from .torch import *
File "/opt/anaconda/envs/fastai/lib/python3.6/site-packages/fastai/imports/torch.py", line 1, in <module>
import torch, torch.nn.functional as F
File "/opt/anaconda/envs/fastai/lib/python3.6/site-packages/torch/__init__.py", line 84, in <module>
from torch._C import *
ImportError: libcuda.so.1: cannot open shared object file: No such file or directory
Would appreciate any help! Thanks.
PS- I do need CUDA installed ânormallyâ on my system, because I also have a project that uses Keras that I need to run on this machine. (âŚOh geez, and I removed CUDA 9.1 in doing the Troubleshooting, but my Tensorflow was built from source using 9.1!)