Python 2.7与Adwords API:ImportError:无法导入名称AdWordsClient
我在Windows 7上用Python 2.7尝试使用Adwords API时,遇到了以下错误:
ImportError: 无法导入名称 AdWordsClient
这是我使用的代码(我从谷歌的示例中获得的):
import os
import sys
sys.path.insert(0, os.path.join('..', '..', '..', '..', '..'))
# Import appropriate classes from the client library.
from adspygoogle import AdWordsClient
from adspygoogle.common import Utils
1 个回答
1
问题已经解决了。只需要在代码的开头加上一行:
import fpconst