How do I use installed packages in PyCharm?

后端 未结 13 1571
暗喜
暗喜 2020-11-22 16:20

In PyCharm, I\'ve added the Python environment /usr/bin/python. However,

from gnuradio import gr

fails as an unde

13条回答
  •  一向
    一向 (楼主)
    2020-11-22 16:26

    In PyCharm 2020.1 CE and Professional, you can add a path to your project's Python interpreter by doing the following:

    1) Click the interpreter in the bottom right corner of the project and select 'Interpreter Settings'

    2) Click the settings button to the right of the interpreter name and select 'Show All':

    3) Make sure your project's interpreter is selected and click the fifth button in the bottom toolbar, 'show paths for the selected interpreter':

    4) Click the '+' button in the bottom toolbar and add a path to the folder containing your module:

提交回复
热议问题