gpt4 book ai didi

python - 在 Google App Engine 上导入 django-widget-tweaks 时出错

转载 作者:行者123 更新时间:2023-12-01 04:22:22 25 4
gpt4 key购买 nike

我正在 Google App Engine 上部署 Django 应用程序,但在导入 django-widget-tweaks 时遇到错误:

appcfg.py: error: Error parsing ./app.yaml: the library "django-widget-tweaks" is not supported

除了不使用库之外,还有什么方法可以解决这个问题吗?

最佳答案

您可以install third-party libraries yourself 。由于这不是运行时提供的第三方库之一,因此您必须满足以下条件:

  • The library must be implemented as pure Python code (no C extensions).
  • The code is uploaded to App Engine with your application code, and counts toward file quotas.
  • Use pip to install the library and the vendor module to enable importing packages from the third-party library directory

据我所知,您想要使用的模块是完全用 Python 实现的,所以这应该是直接的。请参阅 vendoring 上的文档有关如何执行此操作的更多信息。

关于python - 在 Google App Engine 上导入 django-widget-tweaks 时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33572049/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com