zoukankan      html  css  js  c++  java
  • 基于anaconda安装cudarray和deeppy模块

    前面我已经介绍过安装anaconda在集群上的安装,这里安装两个第三方模块,它们不能直接用pip或者conda命令安装,需要自己手动安装。我在安装的过程中遇到了一些问题,记录下来。

    首先,deeppy的安装是需要依赖cudarray的,所以必须先安装cudarray,下载请click here

    下载完毕之后解压,有了Makefile文件,原文中配置文件是要这么改的。

    First, you should consider specifying the following environment variables.

    - `INSTALL_PREFIX` (default: `/usr/local`). Path where to install libcudarray. For the Anaconda Pythondistribution this should be `/path/to/anaconda`.

    - `CUDA_PREFIX` (default: `/usr/local/cuda`). Path to the CUDA SDK organized in `bin/`, `lib/`, `include/`folders.

    - `CUDNN_ENABLED`. Set `CUDNN_ENABLED` to `1` to include cuDNN operations in `libcudarray`.

    根据我的实际情况,我的anaconda安装在/data1/NLPRMNT/sunliming,所以我的INSTALL_PREFIX改为

    INSTALL_PREFIX=/data1/NLPRMNT/sunliming/anaconda

    我的cuda目录是

    CUDA_PREFIX = /usr/local/cuda-6.5

    接着是我设置CUDNN_ENABLED

    CUDNN_ENABLED = 1
    # Set CUDNN_ENABLED to 1 to include cuDNN operations in libcudarray.

    到了这儿配置就改好了,接着运行

    make

    make install

    显示so文件被拷贝到anaconda/lib目录下面去了,接下来还有一个很重要的工作,就是安装cudarray模块。我表示我做的时候把这一步忘记了,然后后面测试,死活都过不去,都是泪啊!

    python setup.py install

    到这个时候安装完毕测试一下

    python

    import cudarray

    没有问题的话就可以装deeppy了。安装deeppy就简单多了,下载、解压、执行。

    python setup.py install

    然后就配置好了。

    pip list

    就能看到结果了。

    abstract-rendering (0.5.1)
    argcomplete (0.8.4)
    astropy (1.0.1)
    backports.ssl-match-hostname (3.4.0.2)
    bcolz (0.8.1)
    beautifulsoup4 (4.3.2)
    binstar (0.10.1)
    bitarray (0.8.1)
    blaze (0.7.3)
    blz (0.6.2)
    bokeh (0.8.1)
    boto (2.36.0)
    cdecimal (2.3)
    certifi (14.5.14)
    cffi (0.9.2)
    clyent (0.3.4)
    colorama (0.3.3)
    conda (3.10.0)
    conda-build (1.11.0)
    conda-env (2.1.3)
    configobj (5.0.6)
    cryptography (0.8)
    cudarray (0.1)
    Cython (0.22)
    cytoolz (0.7.2)
    DataShape (0.4.4)
    decorator (3.4.0)
    deeppy (0.1.dev0)

    接下来就是测试程序了,希望没有其他问题。
  • 相关阅读:
    Selenium+unittest(4)生成html报告带截图
    Selenium+unittest(2)配置模块介绍
    python+requests+unittest(1)接口自动化测试框架结构介绍
    Selenium+unittest(1)web自动化整体框架介绍
    App自动化测试
    robotframework自动化测试框架搭建及问题汇总
    QTP11完美破解小笔记
    Loadrunner11完美破解小笔记
    【转】微信小程序专项测试
    【转】如何测试微信应用号
  • 原文地址:https://www.cnblogs.com/shishupeng/p/5690706.html
Copyright © 2011-2022 走看看