在Ubuntu16.04中将caffe-cpu安装在特定Anaconda虚拟环境中
如果是新电脑且需要将caffe安装在本机的python环境中,可以直接照着:https://www.cnblogs.com/acgoto/p/11570188.html 中描述的步骤执行,亲测有效。
python3.7安装
python2.7安装
在安装caffe前先安装对应的依赖:
pip install numpy scikit-image protobuf==2.6.1
下面主要给出在Anaconda环境下安装caffe的一些过程:
- 更换下载源
sudo cp /etc/apt/souse
将sou文件中的内容更换为以下内容:
deb http://mirrors.aliyun.com/ubuntu/ xenial main
deb-src http://mirrors.aliyun.com/ubuntu/ xenial main
deb http://mirrors.aliyun.com/ubuntu/ xenial-updates main
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-updates main
deb http://mirrors.aliyun.com/ubuntu/ xenial universe
deb-src http://mirrors.aliyun.com/ubuntu/ xenial universe
deb http://mirrors.aliyun.com/ubuntu/ xenial-updates universe
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-updates universe
deb http://mirrors.aliyun.com/ubuntu/ xenial-security main
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-security main
deb http://mirrors.aliyun.com/ubuntu/ xenial-security universe
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-security universe
参考: