如何在Windows 10上安装JSON?

问题描述 投票:0回答:1

[我正在尝试为需要运行的Python代码安装JSON,但是当我尝试在Windows上以传统方式安装数据包时,请pip install json,它会给我以下错误:

C:\Users\user>pip install json
Collecting json
  ERROR: Could not find a version that satisfies the requirement json (from versions: none)
ERROR: No matching distribution found for json

我已经尝试上网并找到一个可以直接下载到设备上的数据包,以便我可以运行我的代码。

这个问题与我正在编写和测试的代码无关,我只需要知道如何在Windows上安装JSON

json windows cmd pip install
1个回答
0
投票

json是标准库https://docs.python.org/3/library/json.html中的模块。您无需安装它,只需继续import json(即双关语)。

© www.soinside.com 2019 - 2024. All rights reserved.