首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在Windows 7上安装GraphLab Create的问题

在Windows 7上安装GraphLab Create的问题
EN

Stack Overflow用户
提问于 2015-09-03 05:55:01
回答 1查看 3.9K关注 0票数 0

作为我课程的一部分,我试图安装GraphLab Create,遵循在https://dato.com/站点上给出的说明。我的系统运行在Windows 7专业的8GB内存和大约40 GB的自由硬盘空间。

我做了以下工作:

  1. 按照Windows 64位Python2.7图形安装程序创建说明安装了GraphLab,然后
  2. 按照上图链接中的指示,按照"Anaconda“一节中的顺序执行步骤。

我的安装成功,但我无法使用这个软件包,导入图形实验室抛出错误。日志文件和错误如下所示:

代码语言:javascript
复制
Added C:\Anaconda and C:\Anaconda\Scripts to PATH.

C:\Anaconda>conda create -n dato-env python=2.7
Fetching package metadata: ....
Solving package specifications: .
Package plan for installation in environment C:\Anaconda\envs\dato-env:

The following packages will be downloaded:

    package                    |            build
    ---------------------------|-----------------
    setuptools-18.1            |           py27_0         646 KB
    wheel-0.24.0               |           py27_0         116 KB
    pip-7.1.2                  |           py27_0         1.4 MB
    ------------------------------------------------------------
                                           Total:         2.2 MB

The following NEW packages will be INSTALLED:

    pip:        7.1.2-py27_0
    python:     2.7.10-0
    setuptools: 18.1-py27_0
    wheel:      0.24.0-py27_0

Proceed ([y]/n)? Y

Fetching packages ...
setuptools-18. 100% |###############################| Time: 0:00:01 624.09 kB/s
wheel-0.24.0-p 100% |###############################| Time: 0:00:00   1.35 MB/s
pip-7.1.2-py27 100% |###############################| Time: 0:00:02 737.94 kB/s
Extracting packages ...
[      COMPLETE      ]|##################################################| 100%
Linking packages ...
[      COMPLETE      ]|##################################################| 100%
#
# To activate this environment, use:
# > activate dato-env
#

C:\Anaconda>activate dato-env
Activating environment "dato-env"...

[dato-env] C:\Anaconda>conda update pip
Fetching package metadata: ....
# All requested packages already installed.
# packages in environment at C:\Anaconda\envs\dato-env:
#
pip                       7.1.2                    py27_0

[dato-env] C:\Anaconda>conda install ipython-notebook
Fetching package metadata: ....
Solving package specifications: .
Package plan for installation in environment C:\Anaconda\envs\dato-env:

The following packages will be downloaded:

    package                    |            build
    ---------------------------|-----------------
    decorator-4.0.2            |           py27_0          11 KB
    ipython_genutils-0.1.0     |           py27_0          32 KB
    mistune-0.7.1              |           py27_0         122 KB
    path.py-7.6                |           py27_0          41 KB
    pickleshare-0.5            |           py27_0           8 KB
    simplegeneric-0.8.1        |           py27_0           6 KB
    traitlets-4.0.0            |           py27_0          88 KB
    ipython-4.0.0              |           py27_0         969 KB
    jinja2-2.8                 |           py27_0         263 KB
    jupyter_core-4.0.4         |           py27_0          74 KB
    tornado-4.2.1              |           py27_0         510 KB
    jupyter_client-4.0.0       |           py27_0         129 KB
    nbformat-4.0.0             |           py27_0         155 KB
    ipykernel-4.0.3            |           py27_0         111 KB
    nbconvert-4.0.0            |           py27_0         306 KB
    notebook-4.0.4             |           py27_0         4.3 MB
    ipython-notebook-4.0.4     |           py27_0           5 KB
    ------------------------------------------------------------
                                           Total:         7.0 MB

The following NEW packages will be INSTALLED:

    certifi:            14.05.14-py27_0
    decorator:          4.0.2-py27_0
    ipykernel:          4.0.3-py27_0
    ipython:            4.0.0-py27_0
    ipython-notebook:   4.0.4-py27_0
    ipython_genutils:   0.1.0-py27_0
    jinja2:             2.8-py27_0
    jsonschema:         2.4.0-py27_0
    jupyter_client:     4.0.0-py27_0
    jupyter_core:       4.0.4-py27_0
    markupsafe:         0.23-py27_0
    mistune:            0.7.1-py27_0
    nbconvert:          4.0.0-py27_0
    nbformat:           4.0.0-py27_0
    notebook:           4.0.4-py27_0
    path.py:            7.6-py27_0
    pickleshare:        0.5-py27_0
    pygments:           2.0.2-py27_0
    pyreadline:         2.0-py27_0
    pyzmq:              14.7.0-py27_0
    simplegeneric:      0.8.1-py27_0
    ssl_match_hostname: 3.4.0.2-py27_0
    tornado:            4.2.1-py27_0
    traitlets:          4.0.0-py27_0

Proceed ([y]/n)? y

Fetching packages ...
decorator-4.0. 100% |###############################| Time: 0:00:00   3.74 MB/s
ipython_genuti 100% |###############################| Time: 0:00:00   1.32 MB/s
mistune-0.7.1- 100% |###############################| Time: 0:00:00   1.20 MB/s
path.py-7.6-py 100% |###############################| Time: 0:00:00 987.33 kB/s
pickleshare-0. 100% |###############################| Time: 0:00:00   3.92 MB/s
simplegeneric- 100% |###############################| Time: 0:00:00 655.22 kB/s
traitlets-4.0. 100% |###############################| Time: 0:00:00 942.22 kB/s
ipython-4.0.0- 100% |###############################| Time: 0:00:01 943.49 kB/s
jinja2-2.8-py2 100% |###############################| Time: 0:00:00 816.70 kB/s
jupyter_core-4 100% |###############################| Time: 0:00:00 901.24 kB/s
tornado-4.2.1- 100% |###############################| Time: 0:00:00 767.53 kB/s
jupyter_client 100% |###############################| Time: 0:00:00 409.79 kB/s
nbformat-4.0.0 100% |###############################| Time: 0:00:00 571.91 kB/s
ipykernel-4.0. 100% |###############################| Time: 0:00:00   1.04 MB/s
nbconvert-4.0. 100% |###############################| Time: 0:00:00 454.87 kB/s
notebook-4.0.4 100% |###############################| Time: 0:00:07 561.12 kB/s
ipython-notebo 100% |###############################| Time: 0:00:00 606.63 kB/s
Extracting packages ...
[      COMPLETE      ]|##################################################| 100%
Linking packages ...
[      COMPLETE      ]|##################################################| 100%

[dato-env] C:\Anaconda>pip install --upgrade --no-cache-dir https://get.dato.com
/GraphLab-Create/1.5.2/******@spsmail.cuny.edu/****-****-****-****-****
-****-****-****/GraphLab-Create-License.tar.gz
Collecting https://get.dato.com/GraphLab-Create/1.5.2/******@spsmail.cu
ny.edu/****-****-****-****-****-****-****-****/GraphLab-Create-License.tar.gz
  Downloading https://get.dato.com/GraphLab-Create/1.5.2/******@spsmail
.cuny.edu/****-****-****-****-****-****-****-****/GraphLab-Create-License.tar.gz

Collecting graphlab-create>=1.5.2 (from GraphLab-Create-License==1.5.2)
  Downloading GraphLab_Create-1.5.2-cp27-none-win_amd64.whl (41.4MB)
    100% |################################| 41.4MB 706kB/s
Collecting boto==2.33.0 (from graphlab-create>=1.5.2->GraphLab-Create-License==1
.5.2)
  Downloading boto-2.33.0-py2.py3-none-any.whl (1.3MB)
    100% |################################| 1.3MB 611kB/s
Collecting prettytable==0.7.2 (from graphlab-create>=1.5.2->GraphLab-Create-Lice
nse==1.5.2)
  Downloading prettytable-0.7.2.tar.bz2
Collecting decorator==3.4.0 (from graphlab-create>=1.5.2->GraphLab-Create-Licens
e==1.5.2)
  Downloading decorator-3.4.0.tar.gz
Collecting librato-metrics==0.4.9 (from graphlab-create>=1.5.2->GraphLab-Create-
License==1.5.2)
  Downloading librato-metrics-0.4.9.tar.gz
Collecting multipledispatch>=0.4.7 (from graphlab-create>=1.5.2->GraphLab-Create
-License==1.5.2)
  Downloading multipledispatch-0.4.8.tar.gz
Collecting sseclient==0.0.8 (from graphlab-create>=1.5.2->GraphLab-Create-Licens
e==1.5.2)
  Downloading sseclient-0.0.8.tar.gz
Collecting requests==2.3.0 (from graphlab-create>=1.5.2->GraphLab-Create-License
==1.5.2)
  Downloading requests-2.3.0-py2.py3-none-any.whl (452kB)
    100% |################################| 454kB 718kB/s
Collecting awscli==1.7.27 (from graphlab-create>=1.5.2->GraphLab-Create-License=
=1.5.2)
  Downloading awscli-1.7.27.tar.gz (336kB)
    100% |################################| 339kB 787kB/s
Collecting mixpanel-py==3.1.1 (from graphlab-create>=1.5.2->GraphLab-Create-Lice
nse==1.5.2)
  Downloading mixpanel-py-3.1.1.tar.gz
Collecting tornado==4.1 (from graphlab-create>=1.5.2->GraphLab-Create-License==1
.5.2)
  Downloading tornado-4.1.tar.gz (332kB)
    100% |################################| 335kB 602kB/s
Collecting six (from librato-metrics==0.4.9->graphlab-create>=1.5.2->GraphLab-Cr
eate-License==1.5.2)
  Downloading six-1.9.0-py2.py3-none-any.whl
Collecting botocore<0.109.0,>=0.108.0 (from awscli==1.7.27->graphlab-create>=1.5
.2->GraphLab-Create-License==1.5.2)
  Downloading botocore-0.108.0.tar.gz (1.6MB)
    100% |################################| 1.6MB 413kB/s
Collecting bcdoc<0.15.0,>=0.14.0 (from awscli==1.7.27->graphlab-create>=1.5.2->G
raphLab-Create-License==1.5.2)
  Downloading bcdoc-0.14.0-py2.py3-none-any.whl
Collecting colorama<=0.3.3,>=0.2.5 (from awscli==1.7.27->graphlab-create>=1.5.2-
>GraphLab-Create-License==1.5.2)
  Downloading colorama-0.3.3.tar.gz
Collecting docutils>=0.10 (from awscli==1.7.27->graphlab-create>=1.5.2->GraphLab
-Create-License==1.5.2)
  Downloading docutils-0.12.tar.gz (1.6MB)
    100% |################################| 1.6MB 481kB/s
Collecting rsa<=3.1.4,>=3.1.2 (from awscli==1.7.27->graphlab-create>=1.5.2->Grap
hLab-Create-License==1.5.2)
  Downloading rsa-3.1.4.tar.gz
Collecting certifi (from tornado==4.1->graphlab-create>=1.5.2->GraphLab-Create-L
icense==1.5.2)
  Downloading certifi-2015.04.28-py2.py3-none-any.whl (373kB)
    100% |################################| 376kB 553kB/s
Requirement already up-to-date: backports.ssl-match-hostname in c:\anaconda\envs
\dato-env\lib\site-packages (from tornado==4.1->graphlab-create>=1.5.2->GraphLab
-Create-License==1.5.2)
Collecting jmespath==0.7.1 (from botocore<0.109.0,>=0.108.0->awscli==1.7.27->gra
phlab-create>=1.5.2->GraphLab-Create-License==1.5.2)
  Downloading jmespath-0.7.1-py2.py3-none-any.whl
Collecting python-dateutil<3.0.0,>=2.1 (from botocore<0.109.0,>=0.108.0->awscli=
=1.7.27->graphlab-create>=1.5.2->GraphLab-Create-License==1.5.2)
  Downloading python_dateutil-2.4.2-py2.py3-none-any.whl (188kB)
    100% |################################| 192kB 356kB/s
Collecting pyasn1>=0.1.3 (from rsa<=3.1.4,>=3.1.2->awscli==1.7.27->graphlab-crea
te>=1.5.2->GraphLab-Create-License==1.5.2)
  Downloading pyasn1-0.1.8.tar.gz (75kB)
    100% |################################| 77kB 593kB/s
Installing collected packages: boto, prettytable, decorator, six, librato-metric
s, multipledispatch, requests, sseclient, jmespath, python-dateutil, botocore, d
ocutils, bcdoc, colorama, pyasn1, rsa, awscli, mixpanel-py, certifi, tornado, gr
aphlab-create, GraphLab-Create-License
  Running setup.py install for prettytable
  Found existing installation: decorator 4.0.2
    Uninstalling decorator-4.0.2:
      Successfully uninstalled decorator-4.0.2
  Running setup.py install for decorator
  Running setup.py install for librato-metrics
  Running setup.py install for multipledispatch
  Running setup.py install for sseclient
  Running setup.py install for botocore
  Running setup.py install for docutils
  Running setup.py install for colorama
  Running setup.py install for pyasn1
  Running setup.py install for rsa
  Running setup.py install for awscli
  Running setup.py install for mixpanel-py
  Found existing installation: certifi 14.5.14
    DEPRECATION: Uninstalling a distutils installed project (certifi) has been d
eprecated and will be removed in a future version. This is due to the fact that
uninstalling a distutils project will only partially uninstall the project.
    Uninstalling certifi-14.5.14:
      Successfully uninstalled certifi-14.5.14
  Found existing installation: tornado 4.2.1
    DEPRECATION: Uninstalling a distutils installed project (tornado) has been d
eprecated and will be removed in a future version. This is due to the fact that
uninstalling a distutils project will only partially uninstall the project.
    Uninstalling tornado-4.2.1:
      Successfully uninstalled tornado-4.2.1
  Running setup.py install for tornado
  Running setup.py install for GraphLab-Create-License
Successfully installed GraphLab-Create-License-1.5.2 awscli-1.7.27 bcdoc-0.14.0
boto-2.33.0 botocore-0.108.0 certifi-2015.4.28 colorama-0.3.3 decorator-3.4.0 do
cutils-0.12 graphlab-create-1.5.2 jmespath-0.7.1 librato-metrics-0.4.9 mixpanel-
py-3.1.1 multipledispatch-0.4.8 prettytable-0.7.2 pyasn1-0.1.8 python-dateutil-2
.4.2 requests-2.3.0 rsa-3.1.4 six-1.9.0 sseclient-0.0.8 tornado-4.1

[dato-env] C:\Anaconda>python
Python 2.7.10 |Anaconda 2.3.0 (64-bit)| (default, May 28 2015, 16:44:52) [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: http://continuum.io/thanks and https://binstar.org
>>> import graphlab
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named graphlab
>>>

虽然我可以在我的系统上看到文件夹C:\Anaconda\envs\dato-env,但导入graphlab正在抛出错误。

感谢帮助。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2015-09-03 11:49:34

我已经解决了这个问题,如果它能帮助别人的话,我也想发同样的帖子。实际上,这是dato的激活脚本(C是/曾经是我的C:\Anaconda\Scripts\activate.bat)所破坏的窗口环境。添加

代码语言:javascript
复制
set PREACTIVATE_PATH=C:\Anaconda;C:\Anaconda\Scripts;
call set PATH=%%PATH:%PREACTIVATE_PATH%=%%

就在“设置CONDA_NEW_ENV=%~1”行和

代码语言:javascript
复制
cd %ANACONDA_ENVS%\%CONDA_DEFAULT_ENV%

就在“设置PROMPT=%CONDA_DEFAULT_ENV% %提示符%”行之后,将修复此问题。还要注意,您不能使用在开始菜单下创建的标准快捷方式,因为每次都需要激活新环境。

因此启动过程将是:

  1. 在启动时单击"Anaconda (*)“下的"Anaconda命令提示”
  2. 输入“激活并按enter”
  3. 从这个shell启动ipython或python笔记本

就这样,很容易,但我花了几个小时才弄明白。

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/32367923

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档