PyCharm import external library

前端 未结 7 1812
广开言路
广开言路 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:15

    I wanted to add an import path, for another project elsewhere in my workspace. MacOS Catalina 10.15.5 PyCharm Community 2020.1.1

    PyCharm - Preferences - Project interpreter - Cog symbol - Show All

    At the bottom of that dialog, it shows 5 buttons: Plus, Minus, Pencil, Funnel, and Directory tree.

    Click Directory tree. You can now use the Plus button in the new dialog to add your 'external library' search path.

    If successful, you should now see the directory name in the "External Libraries" pane in the Project panel.

提交回复
热议问题