在Google App Engine中安装Unirest Python模块
1 个回答
0
在你的 main.py 文件里添加 import sys
这行代码,然后再加上下面这些内容。
# 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 文件夹,然后把 unirest 文件夹复制到这个 lib 文件夹里。
现在你就可以导入 unirest 并使用你的库了。
不过,为什么不使用 Google App Engine 提供的标准方法和库呢?