Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ImportError: cannot import name 'bigquery'

This must be a super trivial issue, but i've updated my windows virtual machine with;

pip install --upgrade google-cloud-storage

However, when I run the script I still receive the following error;

Traceback (most recent call last):
  File "file.py", line 6, in <module>
    from google.cloud import bigquery, storage
ImportError: cannot import name 'bigquery'

Any suggestions or workarounds?

Thanks, Neel R

like image 955
Neel Avatar asked Mar 27 '20 22:03

Neel


1 Answers

I was facing the same problem.But applying every answer nothing was working. Then I noticed that pip need to be ungraded. So I upgrade pip first.

python -m pip install --upgrade pip

Then I try this solution just changing a little bit https://stackoverflow.com/a/60895009/5393858

pip install --upgrade google-cloud
pip install --upgrade google-cloud-bigquery
pip install --upgrade google-cloud-storage
like image 93
Shu Rahman Avatar answered Nov 09 '22 18:11

Shu Rahman