运行nupichelloworld在pycharm

2024-06-11 18:34:45 发布

您现在位置:Python中文网/ 问答频道 /正文

我想在pycharm中运行nupichelloworld(https://github.com/lonesword/nupichelloworld),但不知道如何强制它查看nupic库。所有来源-核, nupic.来源,nupichelloworld等位于同一层(/家)(我使用的是我从 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

如何解决?唐克斯!你知道吗


Tags: pyhttpsimportgithubcomhomeas来源