pip install aip-python-sdk-2.2.10.zip
安装完成执行
# -*- coding:utf-8 -*-
from aip import AipNlp
APP_ID= "xxxx"
API_KEY= "xxxxxx"
SECRET_KEY= "xxxxxxx"
client=aip.AipNlp(APP_ID,API_KEY,SECRET_KEY)
==================== RESTART: D:\Python27\analyz_wd-2.py ====================
Traceback (most recent call last):
File "D:\Python27\analyz_wd-2.py", line 7, in
client=aip.AipNlp(APP_ID,API_KEY,SECRET_KEY)
NameError: name 'aip' is not defined
>>> import sys
>>> sys.path
['D:\\Python27\\Lib\\idlelib', 'C:\\Windows\\system32\\python27.zip', 'D:\\Python27\\DLLs', 'D:\\Python27\\lib', 'D:\\Python27\\lib\\plat-win', 'D:\\Python27\\lib\\lib-tk', 'D:\\Python27', 'D:\\Python27\\lib\\site-packages']