PyCharm cannot find library

后端 未结 6 1370
我在风中等你
我在风中等你 2020-12-18 19:43

I am using PyCharm 5 to run a Python 2.7 (Anaconda) script in Ubuntu. My script imports a module with import tensorflow, but this causes the error ImportE

6条回答
  •  生来不讨喜
    2020-12-18 20:05

    I came across this problem just recently using a remote debugger, however I believe it's still the same solution. I just added the following to the Environment Variables section in the Run/Debug Configuration options found in Run > Edit Configurations... dialog: LD_LIBRARY_PATH=/usr/local/cuda/lib64:$LD_LIBRARY_PATH

提交回复
热议问题