Wednesday, May 4, 2022

How to install Tweepy on Google App Engine that runs Python 2.7

In src direcory:
  1. make another directory named lib

  2. run the following command:
    pip2.7 install -t lib/ tweepy==3.10.0

    (Tweepy 3.10.0 is the last version to support Python 2.7 and Python 3.5.)

  3. create a file named appengine_config.py with the following content:
    from google.appengine.ext import vendor
    vendor.add("lib")

  4. in app.yaml add the following:
    libraries:
    - name: ssl
      version: latest

And that should be it!

 

No comments:

Post a Comment