PyCharm cannot find library

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

    The following works for me on Community edition 2019.3

    To set globally for a project:

    • Open File/Settings/Project/Project Interpreter
    • click on the cog icon next to the interpreter
    • choose show all
    • click on the little folder with tree icon bottom right
    • add the path to "Interpreter Paths"

提交回复
热议问题