在终端中输入"source activate graphlab",我可以启动graphlab。
我是这样创建的:"conda create -n graphlab python=2.7 anaconda",因为使用虚拟环境和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'
我该如何解决这个问题?我对安装这些东西完全不熟悉,希望有人能提供详细的逐步说明来帮助我。