caffe 를 컴 파일 할 때 protobuf 버 전의 다른 문제
protobuf 를 설치 하 는 방법 도 여러 가지 가 있 습 니 다.
sudo apt-get install libprotobuf-dev protobuf-compiler #Linux
sudo pip install google protocol #python2.7
sudo pip3 install google protocol #python3.5
conda install protobuf #anaconda
시스템 에 설 치 된 protobuf 보기:
whereis protoc # protobuf
which protoc # protobuf
protoc --version # protobuf
sudo protoc --version # protobuf
그래서 caffe 를 컴 파일 하고 있 습 니 다.Google 이나 protobuf 에 대해 잘못 알 렸 다 면:
.build_release/src/caffe/proto/caffe.pb.h:12:2: error: #error This file was generated by a newer version of protoc which is
error: #error incompatible with your Protocol Buffer headers. Please update
4.567913.문 제 는 시스템 에 여러 개의 protobuf 버 전이 존재 하 는데 시스템 의 기본 버 전 은 caffe 를 컴 파일 하 는 요 구 를 만족 시 키 지 못 합 니 다.이때 우 리 는 Makefile 파일 의 이 두 줄 을 수정 하여 자신 이 원 하 는 버 전 디 렉 터 리 로 바 꿀 수 있 습 니 다.예 를 들 어 시스템 을 사용 하 는 것 으로 바 꿀 수 있 습 니 다.
4.567913.
ImportError: No module named 'google'
이 내용에 흥미가 있습니까?
현재 기사가 여러분의 문제를 해결하지 못하는 경우 AI 엔진은 머신러닝 분석(스마트 모델이 방금 만들어져 부정확한 경우가 있을 수 있음)을 통해 가장 유사한 기사를 추천합니다:
용감한 바로 가기 및 우분투 응용 프로그램안녕하세요 여러분, 이 기사에서는 모든 사이트에서 pwa를 생성하고 실행기 응용 프로그램으로 추가하는 방법을 설명하고 싶습니다. 일부 웹사이트는 PWA로 설치를 허용하지 않지만 유사한 애플리케이션을 원합니다. 1. ...
텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
CC BY-SA 2.5, CC BY-SA 3.0 및 CC BY-SA 4.0에 따라 라이센스가 부여됩니다.