我想在pycharm中运行nupichelloworld (https://github.com/lonesword/nupichelloworld),但不知道如何强制它查看nupic库。所有的源-- nupic.core,nupic.sources,nupichelloworld等都位于同一层(/home) (我使用的是我从https://mega.co.nz获取的NUPIC-03-11-2014图像)。当我尝试在控制台中运行它时,这是可以的,但是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如何解决?谢谢!
发布于 2015-07-10 00:32:42
您可能需要configure the project's interpreter paths才能包含您的包。
https://stackoverflow.com/questions/30958732
复制相似问题