【发布时间】:2017-04-02 02:33:51
【问题描述】:
我正在尝试在 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脚本,然后像其他的一样运行,我该怎么办?
感谢您的关注
【问题讨论】:
标签: python-2.7 windows-10 importerror graphlab