PyCharm cannot find library

后端 未结 6 1376
我在风中等你
我在风中等你 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 19:47

    The path to your cuda library seems strange to me. I would expect it to be /usr/local/cuda-7.0/lib64 or /usr/local/cuda-7.0/lib.

    Did you follow all of the cuda installation procedure?

    If you type env on the command line, do you see a path to cuda in your LD_LIBRARY_PATH?


    Update from comments below:

    The issue is that PyCharm was invoked from the desktop, and wasn't getting the right environment variables. Solution is to either:

    • invoke from the command line,
    • create a script to set environment and then invoke, and make a link to that script on the desktop,
    • or set environment variables on the desktop item

提交回复
热议问题