通过终端中的“source activate 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'
我该如何解决这个问题?我对安装这些东西完全陌生,所以希望有人可以帮助我进行广泛的逐步解释。