2013-02-22 47 views
1

我收到以下錯誤,當我嘗試在WINDWS 7開始使用AdWords API的Python 2.7: 導入錯誤:無法導入名稱AdWordsClientPython 2.7版與Adwords API:導入錯誤:無法導入名稱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 
+0

請編輯您的帖子以包含完整的回溯/錯誤消息。謝謝。 – bernie 2013-02-22 17:58:20

+0

我已經解決了這個問題。我導入了庫fpconst。 – 2013-02-23 18:36:41

回答

1

已經解決了。只需在代碼開頭添加行:

import fpconst 
相關問題