我是Sphinx docs的新手,我正在尝试使用这个为python模块生成autodocs。我可以部分生成它们,我得到的错误如下:
/home/yash/Music/MailingListParser/bDocs/analysis.author.rst:17: WARNING: autodoc: failed to import module 'analysis.author.curve_fitting'; the following exception was raised:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/sphinx/ext/autodoc.py", line 560, in import_object
__import__(self.modname)
File "/home/yash/Music/MailingListParser/lib/analysis/author/curve_fitting.py", line 3, in <module>
from sklearn.metrics import mean_squared_error
ModuleNotFoundError: No module named 'sklearn'
类似的情节,如情节,sklearn等。
我正在使用python3和Sphinx 1.5.6。