繁体   English   中英

Sphinx 自动摘要找不到模块

[英]Sphinx autosummary cannot find module

我正在尝试为https://github.com/deepchecks/deepchecks生成文档。 但是,我有很多错误。 我关心的错误如下:

[autosummary] failed to import deepchecks.vision.Context.
Possible hints:
* ImportError: no module named deepchecks.vision
* ValueError: invalid literal for int() with base 10: 'torch.ops.torchvision._cuda_version'
* AttributeError: module 'deepchecks' has no attribute 'vision'

有人可以指出我修复错误或指出正确的方向吗?

我最终解决这个问题的方法是在conf.py中导入模块

import deepchecks
from deepchecks import vision

添加路径不起作用,因为vision模块需要额外的设置。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM