
[Ubuntu] Protocol Buffer 설치
2020. 8. 30. 14:00
OS/Linux
포스팅 시점 최신 버전 3.13.0 기준 Source download : https://developers.google.com/protocol-buffers/docs/downloads 압축 해제 $ tar xvf protobuf-all-3.13.0.tar.gz $ cd protobuf-3.13.0 빌드 $ ./configure $ make -j8 $ sudo make install $ sudo ldconfig
ImportError: No module named google.protobuf
2018. 10. 8. 11:24
OS/Linux
google.protobuf 를 사용하는 Python 프로그램을 동작시키면 아래와 같은 에러를 볼 수 있다. brown@brown $ ./test.py Traceback (most recent call last): File "./test.py", line 24, in import google.protobuf.text_format ImportError: No module named google.protobuf.text_format 이때는 아래 명령을 통해 설치해주면 해결된다. sudo pip install google sudo pip install protobuf