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,回车,发现不报错,说明安装成功

>>>

ubuntu16.04 安装caffe2的更多相关文章

  1. ubuntu16.04安装jdk,tomcat

    ubuntu16.04安装jdk,tomcat 最近装了一下tomcat,网上的教程很多,我也试了很多次,但是有一些教程关于tomcat配置是错误的,让我走上了歧途.差点重装系统,还好王总及时出手帮助 ...

  2. Ubuntu16.04 安装openjdk-7-jdk

    Ubuntu16.04 安装openjdk-7-jdk sudo apt-get install openjdk-7-jre 或者sudo apt-get install openjdk-7-jdk ...

  3. Ubuntu16.04安装GTK3主题:OSX-Arc

    Ubuntu16.04安装GTK3主题:OSX-Arc GTK3主题:OSX-Arc描述: 前几个月,Gnome3.20升3.22的时候,出现了大量主题崩溃的现象,其中包括Arc.Flatabulou ...

  4. Ubuntu16.04安装opencv for python/c++

    Ubuntu16.04安装opencv for python/c++ 网上关于opencv的安装已经有了不少资料,但是没有一篇资料能让我一次性安装成功,因此花费了大量时间去解决各种意外,希望这篇能给一 ...

  5. ubuntu16.04安装不上有道词典的解决办法

    转自:http://www.linuxdiyf.com/linux/21143.html ubuntu16.04安装不上有道词典,提示: le@hu-pc:~/下载$ sudo dpkg -i you ...

  6. Ubuntu16.04安装mongodb

    Ubuntu16.04安装mongodb copy from: http://blog.csdn.net/zhushh/article/details/52451441 1.导入软件源的公钥 sudo ...

  7. 【Tools】ubuntu16.04安装搜狗输入法

    Ubuntu16,04 安装搜狗输入法 1.下载搜狗输入法的安装包 下载地址为:http://pinyin.sogou.com/linux/ 2.按键Ctr+Alt+T打开终端,输入以下命令切换到下载 ...

  8. Ubuntu16.04安装cuda9.0+cudnn7.0

    Ubuntu16.04安装cuda9.0+cudnn7.0 这篇记录拖了好久,估计是去年6月份就已经安装过几遍,然后一方面因为俺比较懒,一方面后面没有经常在自己电脑上跑算法,比较少装cuda和cudn ...

  9. Ubuntu16.04安装TensorFlow及Mnist训练

    版权声明:本文为博主原创文章,欢迎转载,并请注明出处.联系方式:460356155@qq.com TensorFlow是Google开发的开源的深度学习框架,也是当前使用最广泛的深度学习框架. 一.安 ...

随机推荐

  1. Install nginx on ubuntu

    1. Install libpcre3, libpcre3-dev2. Install zlib1g-dev3. Download nginx and unzip it4. ./configure5. ...

  2. 在struts2.5版本中使用DMI遇到问题

    struts2.5 为了提升安全性,添加了 allomethod 这么个玩意. 解决方法是在配置文件中添加: <package name="exam" extends=&qu ...

  3. windows7安装Scrapy

    在Linux下安装Scrapy很容易,基本不会出现问题 pip install Scrapy 但是在Windows下经常会出现问题,首先还是尝试一下使用pip命令: pip install scrap ...

  4. 3.20 内存及效率的一些总结 3.21 设置竖屏 3.22 CCLOG与CCLog区别

    3.20 内存及效率的一些总结 3.21 设置竖屏 1.android AndroidManifest.xml文件中, screenOrientation="landscape" ...

  5. UVA - 11754 Code Feat (分块+中国剩余定理)

    对于一个正整数N,给出C组限制条件,每组限制条件为N%X[i]∈{Y1,Y2,Y3,...,Yk[i]},求满足条件的前S小的N. 这道题很容易想到用中国剩余定理,然后用求第k小集合的方法输出答案.但 ...

  6. jsp中引入JavaScript的方法

    1:在页面中直接嵌入JavaScript <script language="javascript">..........</script> 2:链接外部J ...

  7. git常用命令备忘录

    返回未修改状态 [git checkout . --没有的提交的,都返回到原来的状态  git clean -xdf 删除文件和目录] git checkout . && git cl ...

  8. 洛谷【P1140】相似基因

    浅谈\(DP\):https://www.cnblogs.com/AKMer/p/10437525.html 题目传送门:https://www.luogu.org/problemnew/show/P ...

  9. flask之基础概念

    [应用]一个 Flask 应用是一个 Flask 类的实例.可以在一个被称为应用工厂的函数内部创建 Flask实例.所有应用相关的配置.注册和其他设置都会在函数内部完成,然后返回这个应用.__init ...

  10. [转载]Linux驱动-SPI驱动 之二:SPI通用接口层

    通过上一篇文章的介绍,我们知道,SPI通用接口层用于把具体SPI设备的协议驱动和SPI控制器驱动联接在一起,通用接口层除了为协议驱动和控制器驱动提供一系列的标准接口API,同时还为这些接口API定义了 ...