pycharm remote debugging GPU server on windows reports error Cannot load cudnn shared library

Reference: Pycharm problem: pycharm remote debugging error ImportError: libcusolver.so.9.0: cannot open shared object file

Reason: LD_LIBRARY_PATH environment variable pycham not found

The core of the troubleshooting problem is: positioning errors and constantly searching for related solutions

The server LD_LIBRARY_PATH path is/data1/miniconda/envs/OCR/lib

os.environ['LD_LIBRARY_PATH'] But the path returned by pycharm execution is strange:

'/data1/miniconda/envs/OCR/lib/python3.9/site-packages/cv2/../../lib64'

Many errors reported Cannot load cudnn shared library is an error reported by the GPU server, and the error reported by the remote server cannot be found. Another way of thinking, search pycharm to connect to the remote server CentOS cuDNN, the result is to set the environment variable in the console, there is no solution [but it is close 】

insert image description here

Executing os.environ['LD_LIBRARY_PATH'] found that the path has been wrong, very strange, finally in Pycharm problem: pycharm remote debugging error ImportError: libcusolver.so.9.0: cannot open shared object file is solved by setting the environment variable of the python file.

PYTHONUNBUFFERED=1;LD_LIBRARY_PATH=/data1/miniconda/envs/OCR/lib

insert image description here

insert image description here

Guess you like

Origin blog.csdn.net/weixin_38235865/article/details/128287307