PyCharm import external library

前端 未结 7 1788
广开言路
广开言路 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 13:55

    Since PyCharm 3.4 the path tab in the 'Project Interpreter' settings has been replaced. In order to add paths to a project you need to select the cogwheel, click on 'More...' and then select the "Show path for the selected interpreter" icon. This allows you to add paths to your project as before.

    My project is now behaving as I would expect.

提交回复
热议问题