PyCharm import external library

前端 未结 7 1749
广开言路
广开言路 2020-11-27 13:22

I am using PyCharm as an editor for python code in Houdini. Whenever I try to import the main Houdini library (hou) I get an error flagged in PyCharm. If I include the code

相关标签:
7条回答
  • 2020-11-27 14:18

    updated on May 26-2018

    If the external library is in a folder that is under the project then

    File -> Settings -> Project -> Project structure -> select the folder and Mark as Sources!

    If not, add content root, and do similar things.

    0 讨论(0)
提交回复
热议问题