无法将 JSON 库导入到 GCP 函数中。

huangapple go评论98阅读模式
英文:

unable to import json lib into GCP functions

问题

"Added "json" in the requirment.txt but encountered below error. Works fine in local.
Any help on this please

Python version3.9

  1. ERROR: Could not find a version that satisfies the requirement json (from versions: none)
  2. ERROR: No matching distribution found for json; Error ID: 656dd225
  3. ```"
  4. <details>
  5. <summary>英文:</summary>
  6. Added &quot;json&quot; in the requirment.txt but encountered below error. Works fine in local.
  7. Any help on this please
  8. Python version3.9

ERROR: Could not find a version that satisfies the requirement json (from versions: none)
ERROR: No matching distribution found for json; Error ID: 656dd225

  1. </details>
  2. # 答案1
  3. **得分**: 1
  4. 这是一个社区维基帮助其他可能遇到此问题的社区成员的帖子:
  5. 正如@guillaume blaquiere和@Mazlum Tosun所述:
  6. 您不需要在Python中的要求中导入JSON,因为`JSON`是Python的标准库,所以无需安装它。
  7. <details>
  8. <summary>英文:</summary>
  9. Posting this as a community wiki to help other community members that can encounter this issue:
  10. As stated by @guillaume blaquiere &amp; @Mazlum Tosun:
  11. You don&#39;t need to import JSON in your requirement in Python as `JSON` is a standard library in python so there&#39;s no need to install it.
  12. </details>

huangapple
  • 本文由 发表于 2023年4月10日 22:53:12
  • 转载请务必保留本文链接:https://go.coder-hub.com/75978152.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定