Install Google Protobuf in Caffe

Source: Internet
Author: User
After the installation of TensorFlow, found that Caffe can not be used, import error, found Googleprotobuf loaded wrong, need to reload

1 > The source code of PROTOBUF can be downloaded on the website http://code.google.com/p/protobuf/downloads/list. Then unzip the installation to use it. The installation steps are as follows: Tar-xzf protobuf-2.1.0.tar.gz CD protobuf-2.1.0./configure--prefix=/usr/local/protobuf make make Chec K make install 2 > sudo vim/etc/profile add export path= $PATH:/usr/local/protobuf/bin/export pkg_config_path=/u sr/local/protobuf/lib/pkgconfig/Save Execution Source/etc/profile
Also add the above two lines of code in ~/.profile, otherwise the login user cannot find the PROTOC command
3 > Configuring the Dynamic link library path sudo vim/etc/ld.so.conf insert:/usr/local/protobuf/lib
4 > Su #root permissions ldconfig
5> remember to go to the Python folder (under the Protobuf-2.1.10/python installation package) to install Python required modules sudo python setup.py build sudo python setup.py test sudo After Python setup.py test is complete, verify that the installation is successful PROTOC--version Verify that the Python module is successfully installed Python import google.protobuf If there is no error, the installation is normal

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.