ModuleNotFoundError: нет модуля с именем «pdfplumber»Python

Программы на Python
Anonymous
ModuleNotFoundError: нет модуля с именем «pdfplumber»

Сообщение Anonymous »

Я хотел бы импортировать pdfplumber и попробовал

Код: Выделить всё

import pdfplumber
и обнаружил ошибку:

Код: Выделить всё

---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
 in 
----> 1 import pdfplumber

ModuleNotFoundError: No module named 'pdfplumber'
Пытался установить с помощью pip3 install pdfplumber, результат вернулся:

Код: Выделить всё

Requirement already satisfied: pdfplumber in c:\python38\lib\site-packages (0.5.26)
Requirement already satisfied: pdfminer.six==20200517 in c:\python38\lib\site-packages (from pdfplumber) (20200517)
Requirement already satisfied: Wand in c:\python38\lib\site-packages (from pdfplumber) (0.6.5)
Requirement already satisfied: Pillow>=7.0.0 in c:\python38\lib\site-packages (from pdfplumber) (7.2.0)
Requirement already satisfied: sortedcontainers in c:\python38\lib\site-packages (from pdfminer.six==20200517->pdfplumber) (2.3.0)
Requirement already satisfied: chardet in c:\users\harper.guo\appdata\roaming\python\python38\site-packages (from pdfminer.six==20200517->pdfplumber) (3.0.4)
Requirement already satisfied: pycryptodome in c:\python38\lib\site-packages (from pdfminer.six==20200517->pdfplumber) (3.10.1)
WARNING: You are using pip version 20.3.3; however, version 21.0.1 is available.
You should consider upgrading via the 'c:\python38\python.exe -m pip install --upgrade pip' command.
Но командная строка показала, что я уже установил модуль?

Код: Выделить всё

>>> pdfplumber

Но импорт pdfplumber вернул ту же ошибку. Как импортировать pdfplumber?

Подробнее здесь: https://stackoverflow.com/questions/663 ... pdfplumber

Вернуться в «Python»