簡體   English   中英

需要使用Python 2.7版本中的“Google-cloud-ndb”庫

[英]Need to use the "Google-cloud-ndb" library in Python 2.7 version

我們目前正在使用 Python 2.7 和 Google App Engine NDB 客戶端。 計划從 Google App Engine 遷移到 Google Cloud NDB

根據文檔,“google-cloud-ndb”庫也正式支持 Python 2.7 和 Python 3.x。 因此,我們正在嘗試通過 google-cloud-ndb 訪問數據存儲區。

我們正面臨以下與 DisturutionNotFound 錯誤相關的跟蹤

raise DistributionNotFound(req, requirers) DistributionNotFound: The 'google-cloud-ndb' distribution was not found and is required by the application

在 Google App Engine 中,Python 2.7 不支持使用requirements.txt文件。 這意味着您必須安裝您的應用程序所需的所有模塊/庫,並將其與您的應用程序一起部署到生產環境中。 在您的特定情況下,這意味着您必須安裝google-cloud-ndb庫。

按照此處的說明安裝運行應用程序所需的庫

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM