class=”markdown_views prism-github-gist”>
In the Pycharm interface Debug program error:
ImportError: libcusolver.so.8.0: cannot open shared object file: No such file or directory
According to the error message, it should be that cuda 8.0 has not been added to the environment variable. If only adding it in bashrc
is not enough, you need to add it manually in Pycharm.
The solution is as follows:
Pycharm menu bar -> Run -> Edit Configurations -> Python main
Add< in Environment variables
code>LD_LIBRARY_PATH = your path.
- If the error is similar to
ImportError: libcusolver.so.8.0
, then there is no cuda path, just add yourcuda lib64
path. For example mine:/data/zyy/usr/local/cuda-8.0/lib64
- If the error is
ImportError: libcudnn 5.0
similar to this, it means there is no cudnn path, add yourcudnn lib64
path. For example mine:/data/zyy/usr/local/cuda-8.0/cuda/lib64
It depends on what the error is, prescribe the right medicine~ Just save it when you are done~