I'm trying to install gcloud on Mac using the following guide: Quickstart for macOS I got the following error while executing the install.sh script
Pratyushs-MacBook-Pro-2:~ pratyush$ ./google-cloud-sdk\ 2/install.sh
Welcome to the Google Cloud SDK!
Traceback (most recent call last):
File "/Users/pratyush/./google-cloud-sdk 2/bin/bootstrapping/install.py", line 12, in <module>
import bootstrapping
File "/Users/pratyush/google-cloud-sdk 2/bin/bootstrapping/bootstrapping.py", line 44, in <module>
from googlecloudsdk.core.credentials import store as c_store
File "/Users/pratyush/google-cloud-sdk 2/lib/googlecloudsdk/core/credentials/store.py", line 36, in <module>
from googlecloudsdk.core.credentials import creds
File "/Users/pratyush/google-cloud-sdk 2/lib/googlecloudsdk/core/credentials/creds.py", line 37, in <module>
import sqlite3
File "/usr/local/Cellar/python@2/2.7.15_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/sqlite3/__init__.py", line 24, in <module>
from dbapi2 import *
File "/usr/local/Cellar/python@2/2.7.15_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/sqlite3/dbapi2.py", line 28, in <module>
from _sqlite3 import *
ImportError: dlopen(/usr/local/Cellar/python@2/2.7.15_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_sqlite3.so, 2): Symbol not found: _sqlite3_enable_load_extension
Referenced from: /usr/local/Cellar/python@2/2.7.15_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_sqlite3.so
Expected in: /usr/lib/libsqlite3.dylib
in /usr/local/Cellar/python@2/2.7.15_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_sqlite3.so
Pratyushs-MacBook-Pro-2:~ pratyush$
Python Version: 2.7.15 Mac: High Sierra v10.13.4
Could someone please help me resolve this error?
Thank you.