我正在尝试在Windows 10-64位上开始使用Graphlab
我已经成功地按照这里列出的说明操作了https://turi.com/download/install-graphlab-create-command-line.html
然后我写了一个示例代码:
>import graphlab
>from graphlab import SFrame
>sf=graphlab.SFrame.read_csv('../Dataset_movielens-latest-small/ratings.csv', delimiter=',', header= True, column_type_hints= list[int,int,float,int])
>sf.print_rows(100,4)在那之后,我试着在激活conda环境后用我的提示符来运行它,但是我得到了这个。
>[gl-env] C:PATH>Toppop_graphlab.py
>Traceback (most recent call last):
> File "C:PATH\Toppop_graphlab.py", line 1, in <module>
> import graphlab
>ImportError: No module named graphlab然后我想我的graphlab安装出错了,但我已经尝试过了
>[gl-env] C:PATH>python
>Python 2.7.12 |Anaconda 4.1.1 (64-bit)| (default, Jun 29 2016, 11:07:13) [MSC v.1500 64 bit (AMD64)] on win32
>Type "help", "copyright", "credits" or "license" for more information.
>Anaconda is brought to you by Continuum Analytics.
>Please check out: *links to continuum and anaconda that i can't post*
>>>> import graphlab
>>>>正如您所看到的,它工作得很好。我只想在notepad++上写一个python脚本,然后像运行其他脚本一样运行它,我能做什么?
感谢您的关注
发布于 2016-11-29 17:46:03
安装依赖项并重新启动python。这可能会有帮助。graphlab.get_dependencies()
https://stackoverflow.com/questions/40673730
复制相似问题