Google Cloud Platform API for Python and AWS Lambda Incompatibility: Cannot import name 'cygrpc'

后端 未结 3 1022
情深已故
情深已故 2020-12-31 20:30

I am trying to use Google Cloud Platform (specifically, the Vision API) for Python with AWS Lambda. Thus, I have to create a deployment package for my dependencies. However,

3条回答
  •  悲&欢浪女
    2020-12-31 21:01

    There's a fast solution that doesn't require much coding.

    Cloud9 uses AMI so using pip on their virtual environment should make it work.

    I created a Lambda from the Cloud9 UI and from the console activated the venv for the EC2 machine. I proceeded to install google-cloud-speech with pip.That was enough to fix the issue.

提交回复
热议问题