JSonschema 4.4.0不提供额外的拼发'
因此,我正在尝试运行一些代码,并继续遇到以下错误:
File "/opt/conda/lib/python3.8/site-packages/pkg_resources/__init__.py", line 770, in resolve
raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'isoduration; extra == "format"' distribution was not found and is required by jsonschema
但是,在运行后,
pip uninstall -y jsonschema && pip install -U jsonschema && pip install jsonschema[isoduration]
我可以
Requirement already satisfied: jsonschema[isoduration] in /opt/conda/lib/python3.8/site-packages (4.4.0)
WARNING: jsonschema 4.4.0 does not provide the extra 'isoduration'
肯定的是,再次运行代码,我会收到与以前相同的错误消息。
我尝试了:
pip installisuration y/code>,但不同格式显示为 缺少
- 用
rm -rf ...
安装 jsonschema jsonschema == 3.2.0
,缺少硬删除jsonschema
rm -rf ... ,它据说它对我的朋友
i'我对这里发生的事情非常困惑,任何帮助将不胜感激。
So I'm trying to run some piece of code and keep getting the following error:
File "/opt/conda/lib/python3.8/site-packages/pkg_resources/__init__.py", line 770, in resolve
raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'isoduration; extra == "format"' distribution was not found and is required by jsonschema
However, after running
pip uninstall -y jsonschema && pip install -U jsonschema && pip install jsonschema[isoduration]
I get
Requirement already satisfied: jsonschema[isoduration] in /opt/conda/lib/python3.8/site-packages (4.4.0)
WARNING: jsonschema 4.4.0 does not provide the extra 'isoduration'
and surely, running my code again I get the same error message as before.
I tried:
pip install isoduration
, but different format showed up as
missing- hard removing
jsonschema
withrm -rf ...
- installing
jsonschema==3.2.0
as it supposedly worked for a friend of mine
I'm very confused with what's going on here, any help would be appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为您应该安装
iSoduration
,和/或使用'
格式
'安装额外。来自I think you should install
isoduration
,and/or use '
format
' install extra. From the docs (emphasis mine):