I've used pip (and pip3) to install google-api-python-client, all over the place, but whenever I try to issue
from google.cloud import bigquery
I get an
ImportError: No module named google.cloud" error.
sys.path
contains the directory that pip reports google-api-python-client is installed in, although it's near the end of a long(ish) list of directories.
Edit:
I've also installed google-cloud. The error occurs with both libraries installed.
Edit2: the Location for both are: "/home/swood/.local/lib/python3.5/site-packages"
print(sys.path) returns: ['/mnt/pasnas00/dbdata/snowflakedata/lib', '/usr/lib/python35.zip', '/usr/lib/python3.5', '/usr/lib/python3.5/plat-x86_64-linux-gnu', '/usr/lib/python3.5/lib-dynload', '/home/swood/.local/lib/python3.5/site-packages', '/usr/local/lib/python3.5/dist-packages', '/usr/lib/python3/dist-packages']
pip3 show google-api-python-client | grep Location
andprint(sys.path)
. Replacegrep
withfindstr
if you are using windows. - JacobIRRvirtualenv
as well so you can be 100% sure of what is installed and where it comes any source of conflict between packages. - Willian Fuks