[英]Why is 'pip show json' showing warning
I wrote pip show json
, but it shows a warning saying我写了
pip show json
,但它显示警告说
"WARNING: Package(s) not found: json".
“警告:找不到包:json”。
I have already run the program many times with json functions, so I know that it is installed, so why can't I check which version it is?我已经用json函数多次运行程序,所以我知道它已安装,为什么我不能检查它是哪个版本? What can I do to check the json version?
如何检查 json 版本?
The json
module is built into Python itself; json
模块内置于Python本身; it isn't separately downloaded, so it has no separate version.它没有单独下载,因此没有单独的版本。
You can verify that multiple ways:您可以通过多种方式验证:
import json; print(json.__file__)
import json; print(json.__file__)
shows a location that's not under site-packages
(where downloaded content goes). import json; print(json.__file__)
显示不在site-packages
下的位置(下载内容所在的位置)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.