0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

pydocで No Python documentation found for ... が出たときの対処

Last updated at Posted at 2020-05-24

#現象

[kimisyo@localhost work]$ pydoc3 test.py
No Python documentation found for 'test.py'.
Use help() to get the interactive help utility.
Use help(str) for help on the str class.

な、なぜ?

#原因
コマンドラインリファレンスによると、引数はファイル名ではなく、モジュール名、パッケージ名、モジュール内のクラス、パッケージ内のモジュール等を指定しないといけないようだ。

pydoc3 <name> ...
    Show text documentation on something.  <name> may be the name of a
    Python keyword, topic, function, module, or package, or a dotted
    reference to a class or function within a module or module in a
    package.  If <name> contains a '/', it is used as the path to a
    Python source file to document. If name is 'keywords', 'topics',
    or 'modules', a listing of these things is displayed.

#対応
これで解決

[kimisyo@localhost work]$ pydoc3 test
0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?