1024programmer Blog Pycharm debugging error ImportError: libcusolver.so.8.0: cannot open shared object file: No such file or directory

Pycharm debugging error ImportError: libcusolver.so.8.0: cannot open shared object file: No such file or directory

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

Insert picture description here
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 your cuda 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 your cudnn 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~
Insert picture here  Description

This article is from the internet and does not represent1024programmerPosition, please indicate the source when reprinting:https://www.1024programmer.com/pycharm-debugging-error-importerror-libcusolver-so-8-0-cannot-open-shared-object-file-no-such-file-or-directory/

author: admin

Previous article
Next article

Leave a Reply

Your email address will not be published. Required fields are marked *

Contact Us

Contact us

181-3619-1160

Online consultation: QQ交谈

E-mail: [email protected]

Working hours: Monday to Friday, 9:00-17:30, holidays off

Follow wechat
Scan wechat and follow us

Scan wechat and follow us

Follow Weibo
Back to top
首页
微信
电话
搜索