Ubuntu 14.04:caffe2 installation, pycharm configuration, Anaconda use

Source: Internet
Author: User
Tags git clone

CAFFE2 installation of the use of some interesting problems, and now will encounter problems and their solutions to a simple record.

1. First Caffe2 in the installation process need to use Git clone, wherein the--recuresive can not be discarded, otherwise you will not be able to download third-party libraries;

2. Eigen related errors occur during the make process and can be modified by modifying the Caffe2 Dependency.cmake folder about the Eigen section, as follows:

---[eigen#set1) #find_package (Eigen3 QUIET)#if(eigen3_found)#  caffe2_include_directories (${eigen3_include_dirs}) #else ()#  caffe2_include_directories (${project_source_dir}/third_party/eigen)#endif () instead: Caffe2_include_directories (${project_source_dir}/third_party/eigen)

You can use the Eigen version that comes with Caffe2.

3. After the installation is complete and after testing, we will find that we would like to be unable to import Caffe2.python in Pycharm, then we can fix this problem by modifying the Pycharm startup file as follows:

Add export PYTHONPATH=/caffe2/caffe2/python:/caffe2/build in pycharm.sh: $PYTHONPATH, note the path to the CAFFE2 needs to be modified 

Reference:

1.http://blog.csdn.net/u013010889/article/details/70808866

2.http://www.cnblogs.com/darkknightzh/p/5896446.html

Ubuntu 14.04:caffe2 installation, pycharm configuration, Anaconda use

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.