Posts tagged with pip

Attempting to use the googleads adwords api

from googleads import adwords 

and get

ModuleNotFoundError: No module named 'googleads' 

I had previous done the

python -m pip install google-ads 

and am running on a macbook pro

How do I resolve this?

Edit

I didn't set up an active virtual environment first, could that be the issue? And as an aside, why is that necessary?

Someone please show me what I'm missing here. I've run the following command: pip install google-ads (see here: https://pypi.org/project/google-ads/) several times. I've also downloaded the tar and run the setup.py file (python setup.py build install).

Following the instructions, I try to import:

import google.ads.google_ads.client 

and I get the following error consistently:

ModuleNotFoundError                       Traceback (most recent call last) <ipython-input-106-df47157331b2> in <module>() ----> 1 import google.ads.google_ads.client ModuleNotFoundError: No module named 'google.ads' 

I can make a call using curl so I know that the configuration is set up properly. For what it's worth, I downloaded the Facebook marketing Python sdk an hour earlier and that works just fine.