简体   繁体   中英

Google App Engine Flexible Python service fails with “ModuleNotFoundError: No module named 'google'”

I am deploying a Python3 app to Google App Engine Flexible Environment. I have all my dependencies listed in the requirements.txt file.

During deployment I received messages indicating the Google libraries have been deployed. But, when the service is started it fails with from google.cloud import storage ModuleNotFoundError: No module named 'google' This runs fine locally.

I needed to include an additional file. ./setup.cfg [install] prefix=

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM