tensorflow installation trouble.


Error Case)
이와 같은 오류가 나는 경우)

from google.protobuf import symbol_database as _symbol_database
ImportError: cannot import name symbol_database

Solution ) this is path problem!

Try this:

python
>>> import google.protobuf
>>> google.protobuf.__file__

then you can see which file is using.
if other version is used instead of distro-provided(check your package folder) get off the confused one.

in my case

/usr/lib/python2.7/dist-packages/google/protobuf/__init__.pyc

instead of

/usr/local/lib/python2.7/dist-packages/google/protobuf/__init__.pyc

위와 같이 명령어를 실행하면 어떤 파일이 사용 중인지 확인 할 수 있다.
만약 distro-provided가 아닌 경로를 참조 중이라면 해당 모듈을 끄면 해결 할 수 있다.

sudo apt-get remove protobuf

이 명령어로 삭제한다.




Posted by 태리정
,