zoukankan      html  css  js  c++  java
  • ubuntu16.04 安装caffe2

    1、使用conda创建环境

    conda create --name caffe2env python=3.6

    ---------------------------------success--------------

    #
    # To activate this environment, use(激活坏境)
    #
    conda activate caffe2env
    #
    # To deactivate an active environment, use
    #
    #conda deactivate

     #

    2、升级caffe2env坏境下的pip,安装opencv-python

    pip install --upgrade pip

    pip install opencv-python

    3、接下来安装caffe

    conda install -c caffe2 caffe2

    #########################安装开始#############################

    The following packages will be downloaded:

    package | build
    ---------------------------|-----------------
    future-0.16.0 | py36_0 668 KB
    gflags-2.2.1 | hf484d3e_0 180 KB
    caffe2-0.8.dev | py36_2018.07.20 9.5 MB caffe2
    six-1.11.0 | py36_1 21 KB
    jasper-1.900.1 | hd497a04_4 279 KB
    opencv-3.3.1 | py36h0a11808_0 38.9 MB
    protobuf-3.5.2 | py36hf484d3e_1 610 KB
    bzip2-1.0.6 | h14c3975_5 414 KB
    harfbuzz-1.7.6 | hec2c2bc_3 807 KB
    graphite2-1.3.11 | h16798f4_2 129 KB
    libprotobuf-3.5.2 | h6f1eeef_0 4.2 MB
    libvpx-1.7.0 | h439df22_0 2.4 MB
    libopus-1.2.1 | hb9ed12e_0 382 KB
    ffmpeg-3.4 | h7985aa0_0 8.0 MB
    glog-0.3.5 | hf484d3e_1 158 KB
    cairo-1.14.12 | h8948797_3 1.3 MB
    ------------------------------------------------------------
    Total: 67.9 MB

    The following NEW packages will be INSTALLED:

    blas: 1.0-mkl
    bzip2: 1.0.6-h14c3975_5
    caffe2: 0.8.dev-py36_2018.07.20 caffe2
    cairo: 1.14.12-h8948797_3
    ffmpeg: 3.4-h7985aa0_0
    fontconfig: 2.13.0-h9420a91_0
    freetype: 2.9.1-h8a8886c_0
    future: 0.16.0-py36_0
    gflags: 2.2.1-hf484d3e_0
    glib: 2.56.1-h000015b_0
    glog: 0.3.5-hf484d3e_1
    graphite2: 1.3.11-h16798f4_2
    harfbuzz: 1.7.6-hec2c2bc_3
    hdf5: 1.10.1-h9caa474_1
    icu: 58.2-h9c2bf20_1
    intel-openmp: 2018.0.3-0
    jasper: 1.900.1-hd497a04_4
    jpeg: 9b-h024ee3a_2
    libgfortran-ng: 7.2.0-hdf63c60_3
    libopus: 1.2.1-hb9ed12e_0
    libpng: 1.6.34-hb9fc6fc_0
    libprotobuf: 3.5.2-h6f1eeef_0
    libtiff: 4.0.9-he85c1e1_1
    libuuid: 1.0.3-h1bed415_2
    libvpx: 1.7.0-h439df22_0
    libxcb: 1.13-h1bed415_1
    libxml2: 2.9.8-h26e45fe_1
    mkl: 2018.0.3-1
    mkl_fft: 1.0.2-py36h651fb7a_0
    mkl_random: 1.0.1-py36h4414c95_1
    numpy: 1.14.5-py36h1b885b7_4
    numpy-base: 1.14.5-py36hdbf6ddf_4
    opencv: 3.3.1-py36h0a11808_0
    pcre: 8.42-h439df22_0
    pixman: 0.34.0-hceecf20_3
    protobuf: 3.5.2-py36hf484d3e_1
    six: 1.11.0-py36_1

    Proceed ([y]/n)? y


    Downloading and Extracting Packages
    future 0.16.0: ######################################################################################## | 100%
    gflags 2.2.1: ######################################################################################### | 100%
    caffe2 0.8.dev: ####################################################################################### | 100%
    six 1.11.0: ########################################################################################### | 100%
    jasper 1.900.1: ####################################################################################### | 100%
    opencv 3.3.1: ######################################################################################### | 100%
    protobuf 3.5.2: ####################################################################################### | 100%
    bzip2 1.0.6: ########################################################################################## | 100%
    harfbuzz 1.7.6: ####################################################################################### | 100%
    graphite2 1.3.11: ##################################################################################### | 100%
    libprotobuf 3.5.2: #################################################################################### | 100%
    libvpx 1.7.0: ######################################################################################### | 100%
    libopus 1.2.1: ######################################################################################## | 100%
    ffmpeg 3.4: ########################################################################################### | 100%
    glog 0.3.5: ########################################################################################### | 100%
    cairo 1.14.12: ######################################################################################## | 100%
    Preparing transaction: done
    Verifying transaction: done
    Executing transaction: done

    ###############################安装结束#######################

    (caffe2env) luo@luo-ThinkPad-W540:~/Desktop/MyFile/Caffe2$
    (caffe2env) luo@luo-ThinkPad-W540:~/Desktop/MyFile/Caffe2$
    (caffe2env) luo@luo-ThinkPad-W540:~/Desktop/MyFile/Caffe2$ python     # (在命令行输入python)
    Python 3.6.6 |Anaconda, Inc.| (default, Jun 28 2018, 17:14:51)
    [GCC 7.2.0] on linux
    Type "help", "copyright", "credits" or "license" for more information.
    >>>
    >>>
    >>> import caffe2             #导入caffe2,回车,发现不报错,说明安装成功

    >>> 

  • 相关阅读:
    EasyNetQ使用(三)【Publish与Subcribe】
    EasyNetQ使用(二)【连接RabbitMQ,SSL连接,Logging】
    EasyNetQ使用(一)【介绍】
    .net core使用EasyNetQ做EventBus
    .NET Core微服务之开源项目CAP的初步使用
    CAP 介绍及使用【视频】
    .NET Core 事件总线,分布式事务解决方案:CAP
    微服务中的异步消息通讯
    使用 Metrics.net + influxdb + grafana 搭建项目自动化监控和预警方案
    编写高效的jQuery代码
  • 原文地址:https://www.cnblogs.com/herd/p/9367071.html
Copyright © 2011-2022 走看看