错误:退出状态为1的命令出错:命令: /usr/bin/python3-c'import sys, setuptools,token enize;sys.argv[0] = '"'"'/tmp/pip-install-6mujq2si/pytesseract/setup.py'"'"'; 文件='"'"'/tmp/pip-install-6mujq2si/pytesseract/setup.py'"';f=getattr(token enize, '"'"'open'"'"', open)(file);code=f.read()替换('"'"'\r\n'"'"', '"'"'\'"'"');f.close();exec(编译(code,file, '"'"'exec'"'"'))' --ege-base /tmp/pip-install-6mujq2si/pytesseract/pip-egg-infocwd: /tmp/pip-install-6mujq2si/pytesseract/完整输出(42行):Traceback(最近一次调用last):文件"/tmp/pip-install-6mujq2si/pytesseract/pytesseract/pytesseract.py",第26行,来自PIL import Image ModuleNotFoundError:没有名为'PIL'的模块
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-6mujq2si/pytesseract/setup.py", line 4, in <module>
setup()
File "/usr/local/lib/python3.8/dist-packages/setuptools/__init__.py", line 145, in setup
return distutils.core.setup(**attrs)
File "/usr/lib/python3.8/distutils/core.py", line 121, in setup
dist.parse_config_files()
File "/usr/local/lib/python3.8/dist-packages/setuptools/dist.py", line 701, in parse_config_files
parse_configuration(self, self.command_options,
File "/usr/local/lib/python3.8/dist-packages/setuptools/config.py", line 121, in parse_configuration
meta.parse()
File "/usr/local/lib/python3.8/dist-packages/setuptools/config.py", line 426, in parse
section_parser_method(section_options)
File "/usr/local/lib/python3.8/dist-packages/setuptools/config.py", line 399, in parse_section
self[name] = value
File "/usr/local/lib/python3.8/dist-packages/setuptools/config.py", line 184, in __setitem__
value = parser(value)
File "/usr/local/lib/python3.8/dist-packages/setuptools/config.py", line 515, in _parse_version
version = self._parse_attr(value, self.package_dir)
File "/usr/local/lib/python3.8/dist-packages/setuptools/config.py", line 349, in _parse_attr
module = import_module(module_name)
File "/usr/lib/python3.8/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
File "<frozen importlib._bootstrap>", line 991, in _find_and_load
File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 848, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/tmp/pip-install-6mujq2si/pytesseract/pytesseract/__init__.py", line 2, in <module>
from .pytesseract import ALTONotSupported
File "/tmp/pip-install-6mujq2si/pytesseract/pytesseract/pytesseract.py", line 28, in <module>
import Image
ModuleNotFoundError: No module named 'Image'
----------------------------------------
错误:退出状态为1的命令错误:pythonsetup.pyegg_info检查日志以获取完整的命令输出。
请试试这个:
如果它不起作用,请尝试以下操作: