环境变量里面配置了 WOLFRAM_ALPHA_APPID 并且执行了source ~/.bash_profile ,最后还重启了jupyter ,依旧报错,读取不到。
Did not find wolfram_alpha_appid, please add an environment variable `WOLFRAM_ALPHA_APPID` which contains it, or pass `wolfram_alpha_appid` as a named parameter. (type=value_error)
另外,请问函数里面如何直接传这个appId ?
作者回复: 你需要重新启动运行jupyter notebook的终端。
如果还有问题可以直接在代码里设置环境变量:
import os
os.environ['WOLFRAM_ALPHA_APPID'] = ....