ImportError: No module named 'google'

前端 未结 10 578
刺人心
刺人心 2020-12-05 09:35

This is not a duplicate. My scenario is a bit different and I could not find a solution from similar posts here. I installed Python 3.5. I ran the pip install google comman

相关标签:
10条回答
  • I figured out the solution:

    • I had to delete my anaconda and python installations
    • Re-install Anaconda only
    • Open Anaconda prompt and point it to Anaconda/Scripts
    • Run pip install google
    • Run the sample code now from Spyder.

    No more errors.

    0 讨论(0)
  • 2020-12-05 09:59

    got this from cloud service documentation

    pip install --upgrade google-cloud-translate

    Worked for me !

    0 讨论(0)
  • 2020-12-05 10:03

    Use this both installation and then go ahead with your python code

    pip install google-cloud    
    pip install google-cloud-vision
    
    0 讨论(0)
  • 2020-12-05 10:03

    I could fix it by installing the following directly.

    pip install google.cloud.bigquery
    pip install google.cloud.storage
    
    0 讨论(0)
  • 2020-12-05 10:03

    I found a similar error when i tried to access the bigquery from google.cloud.

    from google.cloud import bigquery
    

    Error was resolved after i install the google.cloud from conda-forge community.

    conda install -c conda-forge google-cloud-bigquery
    
    0 讨论(0)
  • 2020-12-05 10:04

    According to https://developers.google.com/api-client-library/python/apis/oauth2/v1 you need to install google-api-python-client package:

    pip install --upgrade google-api-python-client
    
    0 讨论(0)
提交回复
热议问题