Google sheet python API modules failing to install using pip

If you have tried to Install the Google Client Library, for Python in Mac, and running into error, see if the below solves the issue.

Original command documented in Google:

pip install --upgrade google-api-python-client google-auth-httplib2 google-auth-oauthlib

Error: Cannot uninstall ‘six’. 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.

Modify the above command to exclude the check for already installed package ‘six’

Modified command:

pip install --upgrade google-api-python-client google-auth-httplib2 google-auth-oauthlib --ignore-installed six

Hope this helps.

ebates promo.png

Leave a comment