How do I use installed packages in PyCharm?

后端 未结 13 1559
暗喜
暗喜 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:27

    As quick n dirty fix, this worked for me: Adding this 2 lines before the problematic import:

    import sys
    sys.path.append('C:\\Python27\\Lib\site-packages')
    

提交回复
热议问题