Функция "help" () не находит документацию - PullRequest
2 голосов
/ 08 мая 2020

Новичок в Python и действительно хочу использовать функцию help () для описаний модулей и т.п.

Когда я открываю Python и набираю help ('modules')

(base) C:\Users\Owner>python
Python 3.7.6 (default, Jan  8 2020, 20:23:39) [MSC v.1916 64 bit (AMD64)] :: Ana
conda, Inc. on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> help()

Welcome to Python 3.7's help utility!

If this is your first time using Python, you should definitely check out
the tutorial on the Internet at https://docs.python.org/3.7/tutorial/.

Enter the name of any module, keyword, or topic to get help on writing
Python programs and using Python modules.  To quit this help utility and
return to the interpreter, just type "quit".

To get a list of available modules, keywords, symbols, or topics, type
"modules", "keywords", "symbols", or "topics".  Each module also comes
with a one-line summary of what it does; to list the modules whose name
or summary contain a given string such as "spam", type "modules spam".

help> modules

Please wait a moment while I gather a list of all available modules...

C:\Users\Owner\anaconda3\lib\site-packages\IPython\kernel\__init__.py:13: ShimWa
rning: The `IPython.kernel` package has been deprecated since IPython 4.0.You sh
ould import from ipykernel or jupyter_client instead.
  "You should import from ipykernel or jupyter_client instead.", ShimWarning)
INTEL MKL ERROR: The operating system cannot run %1. mkl_intel_thread.dll.
Intel MKL FATAL ERROR: Cannot load mkl_intel_thread.dll.

(base) C:\Users\Owner>

, я искал решение по всей сети. Это могло иметь какое-то отношение к numpy, поэтому я решил установить чистую python 3.8. После установки я получаю следующие списки help () и описания модуля или символа, для которых мне нужно описание.

Python 3.8.2 (tags/v3.8.2:7b3ab59, Feb 25 2020, 22:45:29) [MSC v.1916 32 bit (In
tel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> help()

Welcome to Python 3.8's help utility!

If this is your first time using Python, you should definitely check out
the tutorial on the Internet at https://docs.python.org/3.8/tutorial/.

Enter the name of any module, keyword, or topic to get help on writing
Python programs and using Python modules.  To quit this help utility and
return to the interpreter, just type "quit".

To get a list of available modules, keywords, symbols, or topics, type
"modules", "keywords", "symbols", or "topics".  Each module also comes
with a one-line summary of what it does; to list the modules whose name
or summary contain a given string such as "spam", type "modules spam".

help> symbols

Here is a list of the punctuation symbols which Python assigns special meaning
to. Enter any symbol to get more help.

!=                  +                   <=                  __
"                   +=                  <>                  `
"""                 ,                   ==                  b"
%                   -                   >                   b'
%=                  -=                  >=                  f"
&                   .                   >>                  f'
&=                  ...                 >>=                 j
'                   /                   @                   r"
'''                 //                  J                   r'
(                   //=                 [                   u"
)                   /=                  \                   u'
*                   :                   ]                   |
**                  <                   ^                   |=
**=                 <<                  ^=                  ~
*=                  <<=                 _

help> +
'more' is not recognized as an internal or external command,
operable program or batch file.

help> (+)
No Python documentation found for '(+)'.
Use help() to get the interactive help utility.
Use help(str) for help on the str class.

help>

Что я делаю не так? У меня были проблемы с самого начала. Мне не удалось проработать какие-либо учебники по анаконде или python. Это просто самая основная проблема c. Спасибо за помощь.

Ответы [ 2 ]

1 голос
/ 08 мая 2020

Думаю, вам следует переустановить пакет python.

0 голосов
/ 12 мая 2020

«Дополнительно» - это EXE-файл в C: / windows / system32. Мне пришлось установить системные переменные PATH на этот адрес.

Вот поток, который помог мне в этом:

Использование интерпретатора для поиска модуля sys в Python

...