我正在尝试使用带有python 2.7的google cloud sdk测试一个Web应用程序。 但是,我得到了错误:
"C:\Users\Public\My_Project>dev_appserver.py app.yaml
Traceback (most recent call last):
File "C:\Program Files (x86)\Google\Cloud SDK\google-cloud-sdk\platform\google_appengine\dev_appserver.py", line 31, in <module>
import wrapper_util
ImportError: No module named wrapper_util" when i run the 'dev_appserver.py app.yaml'
答案 0 :(得分:0)
您针对Python的Google Cloud SDK组件可能未更新,并且尚未在错误中包含该模块。您可以通过运行以下任一程序来更新它们:
gcloud components update
更新SDK的所有组件
gcloud components install app-engine-python app-engine-python-extras
将安装特定于Python的组件,但如果您使用的是最新版本,则会显示All components are up to date.
。