deepseek-ai / deepseek-ai/DeepSeek-OCR
unable to install the environment
- Dominant language
- Python
- Stars
- 23.9k
- Forks
- 2.2k
- PR merge metrics
- No merged PRs in 30d
Description
Help, everyone. I'm running into this issue while setting up the environment step by step.
The current command is **pip install -r requirements.txt**
errors like:
```
Collecting img2pdf (from -r new_requirements.txt (line 5))
Using cached https://mirrors.aliyun.com/pypi/packages/82/c3/023387e00682dc1b46bd719ec19c4c9206dc8eb182dfd02bc62c5b9320a2/img2pdf-0.6.1.tar.gz (106 kB)
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [12 lines of output]
/mnt/data/envs/miniforge3/envs/deepseek-ocr/lib/python3.12/site-packages/_distutils_hack/__init__.py:53: UserWarning: Reliance on distutils from stdlib is deprecated. Users must rely on setuptools to provide the distutils module. Avoid importing distutils or import setuptools first, and avoid setting SETUPTOOLS_USE_DISTUTILS=stdlib. Register concerns at https://github.com/pypa/setuptools/issues/new?template=distutils-deprecation.yml
warnings.warn(
ERROR: Can not execute `setup.py` since setuptools failed to import in the build environment with exception:
Traceback (most recent call last):
File "", line 14, in
File "/mnt/data/envs/miniforge3/envs/deepseek-ocr/lib/python3.12/site-packages/setuptools/__init__.py", line 23, in
from . import logging, monkey
File "/mnt/data/envs/miniforge3/envs/deepseek-ocr/lib/python3.12/site-packages/setuptools/logging.py", line 5, in
from . import monkey
File "/mnt/data/envs/miniforge3/envs/deepseek-ocr/lib/python3.12/site-packages/setuptools/monkey.py", line 13, in
import distutils.filelist
ModuleNotFoundError: No module named 'distutils'
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
```
how to fix it? SOS
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.