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

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

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

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

<details>
<summary>英文:</summary>


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

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


</details>


# 答案1
**得分**: 1

这是一个社区维基帮助其他可能遇到此问题的社区成员的帖子:

正如@guillaume blaquiere和@Mazlum Tosun所述:

您不需要在Python中的要求中导入JSON,因为`JSON`是Python的标准库,所以无需安装它。

<details>
<summary>英文:</summary>

Posting this as a community wiki to help other community members that can encounter this issue:

As stated by @guillaume blaquiere &amp; @Mazlum Tosun:

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.

</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:

确定