我想在pycharm中运行nupichelloworld(https://github.com/lonesword/nupichelloworld),但不知道如何强制它查看nupic库。所有来源-nupic.core,nupic.sources,nupichelloworld等都位于同一级别(/ home)(我使用的是NUPIC-03-11-2014图像
https://mega.co.nz)。
当我尝试在控制台中运行它时,没关系,但是pycharm告诉以下内容:

/usr/bin/python2.7 /home/nupic/nupichelloworld/helloworld.py
Traceback (most recent call last):
  File "/home/nupic/nupichelloworld/helloworld.py", line 22, in <module>
    import nupic
ImportError: No module named nupic


文件中有这样的导入:

from nupic.research.spatial_pooler import SpatialPooler as SP
import numpy as np


怎么解决呢?谢谢!

最佳答案

您可能需要configure the project's interpreter paths包括您的包裹。

关于python - 在pycharm中运行nupichelloworld,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/30958732/

10-10 18:20