和
“源激活graphlab”
在终端中我可以启动 graphlab。
我是这样创建的:“conda create -n graphlab python=2.7 anaconda”,因为将 virtualenv 与 Anaconda 一起使用未经测试且不推荐(根据终端中的警告,我不知道是否确实如此.)。
启动 graphlab 后,终端显示:
discarding /Users/username/anaconda/bin from PATH
prepending /Users/username/anaconda/envs/graphlab/bin to PATH
但是当我想在 Spider IDE 中导入 graphlab 时,它显示以下错误:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/username/anaconda/lib/python3.4/site packages/spyderlib/widgets/externalshell/sitecustomize.py", line 580, in runfile
execfile(filename, namespace)
File "/Users/username/anaconda/lib/python3.4/site-packages/spyderlib/widgets/externalshell/sitecustomize.py", line 48, in execfile
exec(compile(open(filename, 'rb').read(), filename, 'exec'), namespace)
File "/Users/username/Documents/projectname/pythonfile.py", line 3, in <module>
import graphlab as gl
ImportError: No module named 'graphlab'
我该如何解决这个问题?我对安装这些东西完全陌生,所以希望有人可以帮助我提供广泛的逐步解释。