본문 바로가기

일반

google-api-python-client 설치 에러

Cannot uninstall 'httplib2'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.


python3.6에서 google-api-python-client 설치 할때 위와 같은 에러가 발생하면, 라이브러리를 재 설치 하면 된다. 다른 방법은 못 찾았다.



site-packages에서 아래 라이브러리를 지운다.

rm -rf httplib2

rm -rf httplib2-0.9.1.egg-info

rm -rf six-1.10.0.egg-info

rm -rf six.py


이후 아래 처럼 재 설치

sudo pip3.6 install --upgrade google-api-python-client