在Google App Engine中安装Unirest python模块

在Google App Engine中安装Unirest python模块,python,google-app-engine,python-module,unirest,Python,Google App Engine,Python Module,Unirest,嗨,我是GAE和python的新手。我正在尝试使用python在GAE中创建小型web应用程序。我打算在应用程序中使用模块 我按照中的说明进行操作,并出现以下错误 没有名为poster.encode的模块 如何在GAE中成功安装unirest 谢谢将导入系统添加到main.py并添加这些行 # inject './lib' dir in the path so that we can simply do "import ndb" or whatever there's in the app li

嗨,我是GAE和python的新手。我正在尝试使用python在GAE中创建小型web应用程序。我打算在应用程序中使用模块

我按照中的说明进行操作,并出现以下错误

没有名为poster.encode的模块

如何在GAE中成功安装unirest

谢谢

将导入系统添加到main.py并添加这些行

# inject './lib' dir in the path so that we can simply do "import ndb" or whatever there's in the app lib dir.
if 'lib' not in sys.path:
    sys.path[0:0] = ['lib']
在项目的根目录中创建lib文件夹,并在lib文件夹中复制unirest文件夹

现在可以导入unirest并使用库


但是,为什么不使用Google App Engine提供的标准方法和库呢?

我可以使用请求或urllib吗?appengine中是否有其他模块标准方法和库。我发现[urlfetch][1]很有用。[1]: