the dependency packages of caffe

26 篇文章 0 订阅
25 篇文章 0 订阅

terminal

sudo apt-get update

sudo apt-get install libprotobuf-dev libleveldb-dev libsnappy-dev libopencv-dev libhdf5-serial-dev libgflags-dev libgoogle-glog-dev liblmdb-dev protobuf-compiler libatlas-base-dev
sudo apt-get install python-dev python-pip gfortran
sudo apt-get install cython python-numpy python-scipy python-skimage python-matplotlib python-h5py python-leveldb python-networkx python-pandas python-dateutil python-protobuf python-gflags python-yaml python-pil
sudo apt-get install graphviz python-six python-requests python-Flask python-gevent
sudo apt-get install libboost-all-dev

 

 

write a .sh document

#!/bin/bash

set -e

APT_FLAGS="-y"

echo
echo Installing apt-get packages ...
echo

sudo apt-get update

# Caffe base
sudo apt-get install $APT_FLAGS libprotobuf-dev libleveldb-dev libsnappy-dev libopencv-dev libhdf5-serial-dev libgflags-dev libgoogle-glog-dev liblmdb-dev protobuf-compiler libatlas-base-dev

# Caffe python
sudo apt-get install $APT_FLAGS python-dev python-pip gfortran

# Caffe pip
sudo apt-get install $APT_FLAGS cython python-numpy python-scipy python-skimage python-matplotlib python-h5py python-leveldb python-networkx python-pandas python-dateutil python-protobuf python-gflags python-yaml python-pil

# DIGITS base
sudo apt-get install $APT_FLAGS graphviz
sudo apt-get install $APT_FLAGS libboost-all-dev

# DIGITS pip
sudo apt-get install $APT_FLAGS python-six python-requests python-Flask python-gevent

echo
echo Extracting MNIST images ...
echo

venv/bin/python mnist/main.py

echo Done.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值