Caffe Python Interface compilation

Source: Internet
Author: User

1. Installing Python:yum Install python-devel.x86_64

2. Install some Python library dependencies (these are the ones we found to be missing after debugging, resulting in a Python command mode import caffe error)

Yum Install python-matplotlib.x86_64

#pip Install Scikit-image

sudo easy_install-u scikit-image

3. Install other Python dependencies

CD $CAFFE _root/python

For req in $ (cat requirements.txt); do pip install $req; Done

4. Compiling

Make clean

Make Pycaffe-j32

Make Test-j32

5. Make Caffe's Python interface Permanent

Export pythonpath=/root/$CAFFE _root/python: $PYTHONPATH

Source/etc/profile

Note: Each time a Lib library is missing when testing import Caffe, you need to repeat 4, 5 steps after installation

Caffe Python Interface compilation

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.