0
from googleapiclient.discovery import build

After pip installing google api for python google tells me to use this command however the command doesn't work!

Can anyone help?

https://developers.google.com/docs/api/quickstart/python

Traceback (most recent call last):
  File "C:\Users\M1\PycharmProjects\YouTube\main.py", line 1, in <module>
    from googleapiclient.discovery import build
ModuleNotFoundError: No module named 'googleapiclient'

https://developers.google.com/docs/api/quickstart/python

1
  • Pycharm will probably give you an option to download your package try downloading through Pycharm it might work better than through pip. Commented Nov 22, 2022 at 14:55

1 Answer 1

0

I have installed the libraries using the following command:

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

Then, you can check that the library has been installed properly by running:

pip show google-api-python-client

Now, you should be able to import the libraries in your python code. Make sure that the code is executed within your virtual environment in case you are using one.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.