英文:
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 "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>
# 答案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 & @Mazlum Tosun:
You don't need to import JSON in your requirement in Python as `JSON` is a standard library in python so there's no need to install it.
</details>
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论