Virtualenv Installation Caffe Tutorial

Source: Internet
Author: User
Tags virtualenv

1. Install the dependent environment first,

% 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 --no-install-recommends libboost-all-dev% sudo apt-get install python-dev python-pip python-numpy gfortran

2.然后创建 virtual --system-site-packages caffe-env,执行 source bin/activate,

3.运行 for req in $(cat requirements.txt); do pip install $req; done 安装python需求环境

4.进入caffe文件夹,修改Makefile.config,将PYTHON_INCLUDE和PYTHON_LIB 修改为caffe-env中的路径

5.并修改环境变量:
$ export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/path/to/caffe/build/lib # contains libcaffe.so$ export PYTHONPATH=$PYTHONPATH:/path/to/caffe/python
6.然后 make -j8| make test -j8 | make runtest


Virtualenv Installation Caffe Tutorial

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.