小编edg*_*ora的帖子

Sphinx错误:未知指令类型"automodule"或"autoclass"

我需要使用Sphinx记录我的Python项目.但我不能用autodoc.

当我配置我的项目时,我选择"扩展autodoc"选项,但现在如果我使用

.. autoclass:: Class
Run Code Online (Sandbox Code Playgroud)

我收到一个错误:

ERROR: Unknown directive type "autoclass"
Run Code Online (Sandbox Code Playgroud)

我配置了PYTHONPATH,现在它很好.但我已经有了这个问题.

我的索引文件是:

.. ATOM documentation master file, created by
   sphinx-quickstart on Thu Nov 22 15:24:42 2012.
   You can adapt this file completely to your liking, but it should at least
   contain the root `toctree` directive.

Welcome to ATOM's documentation!
================================

Contents:

.. toctree::
   :maxdepth: 2

.. automodule:: atom

Indices and tables
==================

* :ref:`genindex`
* :ref:`modindex`
* :ref:`search`
Run Code Online (Sandbox Code Playgroud)

我需要有人告诉我如何解决问题.

谢谢

python-sphinx autodoc

42
推荐指数
1
解决办法
2万
查看次数

CondaHTTPError:URL 的 HTTP 000 连接失败 - Anaconda

我已经看到其他帖子通过ssl_verify将其设为假或添加证书的路径来解决。我已经完成了其中的每一项。我已经多次安装并重新安装了anaconda。我已经禁用了我的防病毒程序。

我已经尝试了我在网上找到的所有选项,但没有任何效果对我有用,我仍然收到此错误。

CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://repo.anaconda.com/pkgs/main/win-64/current_repodata.json>
Elapsed: -

An HTTP error occurred when trying to retrieve this URL.
HTTP errors are often intermittent, and a simple retry will get you on your way.

If your current network has https://www.anaconda.com blocked, please file
a support request with your network engineering team.

SSLError(MaxRetryError('HTTPSConnectionPool(host=\'repo.anaconda.com\', port=443): Max retries exceeded with url: /pkgs/main/win-64/current_repodata.json (Caused by SSLError("Can\'t connect to HTTPS URL because the SSL module is not available."))'))
Run Code Online (Sandbox Code Playgroud)

我不确定我应该做什么?

python ssl anaconda

3
推荐指数
1
解决办法
2755
查看次数

标签 统计

anaconda ×1

autodoc ×1

python ×1

python-sphinx ×1

ssl ×1